1.mysql in语句 select * from tb_name where id in (10,12,15,16);2.mysql not in 语句 select * from tb_name where not id in (21,22,23);3.mysql in not in 一起使用 select * from tb_name where id in (10,12,15,16) and not id in (21,22,23);…
MySQL之alter语句用法总结 1:删除列 ALTER TABLE [表名字] DROP [列名称] 2:增加列 ALTER TABLE [表名字] ADD [列名称] INT NOT NULL COMMENT '注释说明' alter table tableName add newColumn varchar(8) comment '新添加的字段' 3:修改列的类型信息 ALTER TABLE [表名字] CHANGE [列名称][新列名称(这里可以用和原来列同名即可)] BIGINT…