mysql> alter table employee change depno depno int(5) not null;
mysql> alter table 表名 add index 索引名 (字段名1[,字段名2 …]);
mysql> alter table employee add index emp_name (name);
mysql> alter table 表名 add primary key (字段名);
mysql> alter table employee add primary key(id);
mysql> alter table 表名 add unique 索引名 (字段名);
mysql> alter table employee add unique emp_name2(cardnumber);
mysql> show index from 表名;
mysql> show index from employee;
mysql> alter table 表名 drop index 索引名;
mysql>alter table employee drop index emp_name;
mysql> ALTER TABLE table_name ADD field_name field_type;
mysql> SELECT * FROM table_name;
mysql> ALTER TABLE table_name CHANGE old_field_name new_field_name field_type;
ALTER TABLE table_name DROP field_name
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有