1. 修改表名:alter table 表名 rename to 新的表名;
2. 修改表的字符集:alter table 表名 character set 字符集名称;
3. 添加一列:alter table 表名 add 列名 数据类型;
4. 修改列名称:alter table 表名 change 列名 新列别 新数据类型;
5. 修改列类型:alter table 表名 modify 列名 新数据类型;
6. 删除列:alter table 表名 drop 列名;
7. 从第m+1条开始,取n条数据:limit m,n 或 limit n offset m
从第0条开始,取n条数据:limit n
8. distinct去重
9. 降序:order by 表名 desc
10. 字符串拼接:mysql:concat(a,b)
sqlite:(a||b)
11. 左连接:from 表1 left join 表2 on 条件 where 条件;