收藏文章 楼主

更新mysql表

版块:mysql 数据库通用基础大全   类型:精华   作者:小绿叶技术博客   查看:3286   回复:0   获赞:5   时间:2018-12-17 15:11:16
alter table eisc add xb char(10); 动态

#新建一个xb的列

#-----------------------------------------

alter table eisc drop column xb;

#删除一个xb的列

#----------------------------------------

update eisc set xb =999 where id =1;

#更新eisc表中的xb的列的id为1的数据

alter table js add constraint xxx foreign key (id) references xs (id);

#外表js的id,与主表xs的id,主外表关系。并新建xxx


提供企业建站服务,免费网防系统,提交信息登录 http://yundun.ddoss.cn 邮箱: proposal@ddoss.cn 
回复列表
默认   热门   正序   倒序

回复:更新mysql表

头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息