表操作:
字段名 字段类型,
字段名 字段类型,
字段名 字段类型,
字段名 字段类型);
查看表结构:desc 表名;
列操作:
增加列:ALTER TABLE tablename ADD columnname datatype;
alter table stu add phonenumber number(12);
修改列:ALTER TABLE table MODIFY columnname datatype;
alter table stu modify phonenumber number(14);
删除列:ALTER TABLE tableDROP column;
alter table stu drop column phonenumber;
查询:desc stu;
发表评论