测试人员必会MySQL的简单查询语句
点击链接加入QQ群 522720170(免费公开课、视频应有尽有):https://jq.qq.com/?_wv=1027&k=5C08ATe1 | 查询所有数据
select * from Info 查所有数据
select Code,Name from Info 查特定列
2 | 根据条件查
select * from Info where Code='p001' 一个条件查询
select * from Info where Code='p001' and Nation='n001' 多条件 并关系 查询
select * from Info where Name='胡军' or Nation='n001' 多条件 或关系 查询
select * from Car where Price>=50 and Price2 查询所有系列中数量大于2的
7 | 分页查询
select * from Car limit 0,5 跳过几条数据取几条数据
8 | 去重查询
select distinct Brand from Car
页:
[1]