摘要:
自关联查询(自身id关联自身id(主键),查询的时候可以逻辑分为两个表,然后分别起一个别名来区分) select * from areas as cityinner join areas as provinces on provinces.id=city.pidwhere provinces.tit 阅读全文
posted @ 2018-06-05 12:19
cccy0
阅读(204)
评论(0)
推荐(0)
摘要:
查询指定字段 select 字段1,字段2 from 表名; 消除重复行(重复指的是结果集中的所有完全重复行) select distinct 字段1,字段2... from 表名 比较运算符(< > != = ) select * from 表名 where id>4 逻辑运算符(and or n 阅读全文
posted @ 2018-06-05 12:17
cccy0
阅读(747)
评论(0)
推荐(0)

浙公网安备 33010602011771号