1.增
insert into 表名(列名,列名) vlues (值,值), (值,值), (值,值), (值,值);
2.删
delete from 表名; delete from 表名 where 条件 ; delete from tb7; delete from tb7 where id = 3; delete from tb7 where id = 4 and name="谢涛"; delete from tb7 where id = 4 or name="谢涛"; delete from tb7 where id > 4; delete from tb7 where id >= 4; delete from tb7 where id != 4; delete from tb7 where id in (1,5);
3.改
update 表名 set 列=值; update 表名 set 列=值,列=值,列=值; update 表名 set 列=值 where 条件;
4.查
select * from 表名; select 列名,列名 from 表名; select 列名称,列名称 from 表名称 where 条件; select * from tb7; select id,name from tb7; select id,name from tb7 where id > 10; select id,name from tb7 where name="xx" and password="xx";
标签:where,表名,tb7,mysql,操作,数据,id,select,delete From: https://www.cnblogs.com/doctorsong/p/16797909.html