SQL语句中最常见的就是增删改查四类。
1.查询:select * from xxx where a = ‘aaa’
2.删除: delete from xxx where a = ‘aaa’
3.修改:update <表名> set <列名=更新值> [where <更新条件>]
update tongxunlu set 年龄=18 where 姓名='蓝色小名'
4.增加:insert into <表名>(列名) values (列值)
insert into xxx (1,2,3,4) values ('a','b','c','d')