滨州做企业网站,六安网站推广,wordpress 移动模板,网站建设制作方法MySQL修改、删除表的结构
1、增加一列
alter table student add score double(3,1); 说明
double#xff08;3,1#xff09;指数据是三位#xff0c;小数部分占一位#xff0c;整数部分占两位#xff0c;默认最后一列
alter table student add score double (5,2) fi…MySQL修改、删除表的结构
1、增加一列
alter table student add score double(3,1); 说明
double3,1指数据是三位小数部分占一位整数部分占两位默认最后一列
alter table student add score double (5,2) first
在第一列插入score alter table student add score double(5,2) after enterdate;
在enterdate后插入 3、删除一列
alter table student drop score; 4、修改一列列名不变
alter table student modify score float(2,1);
update student set score 3.45 where sno 2 修改一列列名改变
alter table student change score score2 double(3,1); 5、修改表名
alter table student rename to stu; 6、查看表的结构
desc student 7、删除数据库表
drop table student