日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
MySQL修改表結(jié)構(gòu)--添加刪除字段

MySQL修改表結(jié)構(gòu)包含諸多的功能,下面介紹的MySQL修改表結(jié)構(gòu)操作實(shí)現(xiàn)的是字段的添加及刪除等,如果您對MySQL修改表結(jié)構(gòu)方面感興趣的話,不妨一看。

MySQL修改表結(jié)構(gòu)--添加字段:

alter table `user_movement_log`
Add column GatewayId int not null default 0 AFTER `Regionid` (在哪個(gè)字段后面添加)

MySQL修改表結(jié)構(gòu)--刪除字段:

alter table `user_movement_log` drop column Gatewayid

調(diào)整字段順序:

ALTER TABLE `user_movement_log` CHANGE `GatewayId` `GatewayId` int not null default 0 AFTER RegionID

//主鍵

alter table tabelname add new_field_id int(5) unsigned default 0 not null auto_increment ,add primary key (new_field_id);

//增加一個(gè)新列

alter table t2 add d timestamp;
alter table infos add ex tinyint not null default ’0′;

//刪除列

alter table t2 drop column c;

//重命名列

alter table t1 change a b integer;

//改變列的類型

alter table t1 change b b bigint not null;
alter table infos change list list tinyint not null default ’0′;

//重命名表

alter table t1 rename t2;

【編輯推薦】

10大常用MySQL命令行

使用MySQL命令行修改密碼

MySQL用戶權(quán)限的取消

授予MySQL用戶權(quán)限的命令

mysql索引比較分析


網(wǎng)站題目:MySQL修改表結(jié)構(gòu)--添加刪除字段
本文鏈接:http://www.5511xx.com/article/cossehi.html