alter table 表名 modify 字段名 类型 约束;(不重命名)
alter table 表名 change 原字段名 新字段名 类型 约束;(重命名)
alter table 表名 drop 字段;
alter table drop 表名;
insert into 表名 values(……);
insert into 表名(字段名,字段名) values(……,……);
insert into 表名(字段名,字段名) values(……),(……);
update 表名 set 字段名 = ,字段名 = ,where 条件(字段名 = )
delete from 表名 where;
alter table 表名 add id_delete bit default 0;
update 表名 set is_delete = 1 where;
MySQL
最新推荐文章于 2024-02-20 14:55:48 发布