1、查看表定义
show create table table_name;
2、查看表字段定义
show columns from table_name like column_name
3、创建一张和已存在的表完全一致的表
create table table_new like table_old;
4、加快alter table 操作的速度

![]()
修改表的默认值
1)alter table film alter column rental_duration set default 5;
2)alter table film alter column rental_duration drop default;

1626

被折叠的 条评论
为什么被折叠?



