摘要:
1.查询排序(order by) 语法 :order by 字段 asc/desc -- asc: 顺序,正序。数值:递增,字母:自然顺序(a-z) -- desc: 倒序,反序。数值:递减,字母:自然反序 (z-a) 案列:按照id顺序排序? SELECT * FROM student ORDER 阅读全文
posted @ 2020-04-22 11:56
嘿抬头i
阅读(153)
评论(0)
推荐(0)
摘要:
1. 查询所有列: select * from 表名; 2. 查询指定列:select 条件 from 表名; 3. 查询去除重复记录:select distinst 条件 from 表名; 4. 条件查询(where) 4.1 逻辑条件: and(与) or(或) 4.2 比较条件:> < >= 阅读全文
posted @ 2020-04-22 10:43
嘿抬头i
阅读(837)
评论(0)
推荐(0)
浙公网安备 33010602011771号