插入数据
- insert into table(field 1 ,field 2) values()
删除数据
- delete from table where xxx = xxx
更新数据
- update table set xx=xxx,xx=xxx where xx = xxx
查找数据
- 普通查找 :select * from table where x= xxx
- 模糊查找:select * from table where x like ‘%xxx%’
- 查找特殊字符%要转义为 \%
- 如果有多个条件,
- 并列关系用and
- 逻辑或 用or
- 若想判断某个值是否为null,要用 is not null 和is null判断