标签:ima and image HERE 技术 esc png sele sql查询
between:select 字段 from 表名 where 字段 between 值 and 值;
select id from stu where id between 1 and 3;
in:select 字段 from 表名 where 字段 in (值,值);
select id from stu where id in (2,3);
not in:select 字段 from 表名 where 字段 in (值,值);
select id from stu where id not in (2,3);
order by asc:select 字段 from 表名 order by 字段;(升序)
select * from stu order by id;
order by desc:select 字段 from 表名 order by 字段 desc;(降序)
select * from stu order by id;
distinct:select distinct(字段) from 表名;
select distinct(id) from stu;
limit:select 字段 from 表名 limit 数字;
select * from stu limit 2;
标签:ima and image HERE 技术 esc png sele sql查询
原文地址:https://www.cnblogs.com/zhangshan33/p/12303396.html