1、查詢:select * from table where 條件
select * from watch.user; // 跨庫查詢,查詢watch庫user表
2、插入:insert into table(字段1,字段2) values(值1,值2)
3、刪除:delete from table where 條件
4、更新:update table set 字段=值 where 條件
5、查找:select * from table where 字段 like ’%value%’
6、排序:select * from table order by 字段 asc(默認)/desc
7、總數:select count(*)/count(字段) from table
8、求和:select sum(字段) from table
9、平均:select avg(字段) from table
10、最大:select max(字段) from table
11、最小:select min(字段) from table