条件,高级查询

条件修改: 

update 表名 set 列名 = 值 where 列名 =值

条件删除:

delete from 表名 where 列名 = />=/<=/>/</!= 值   and   or

 条件查询

select * from 表名           查看列 将* 改成列名 查看多列列名之间用逗号隔开

筛选条件  :where 列名 =  值

模糊查询:select * from 表名 where 列名 like '%值%'

排序查询:select * from 表名  order by 列名 asc升序/desc降序  默认升序

去重查询:select distinct 列名 from 表名

分组查询:select  某一列名 from 表名 group by 对应的列名

子查询:将查询语句当坐直来使用

原文地址:https://www.cnblogs.com/skyhorseyk/p/7060487.html