hc学习平台

 找回密码
 立即注册
搜索
热搜: 活动 交友 javakc
 › henry-J › 日志

对教材中的user表进行简单查询,完成以下要求,写出相应的sql语句

2021-01-06 15:02:34 查看(271) 回复(0)

  1. 查询客户id是105的客户信息
  2. 查询王姓的客户信息
  3. 查询英文姓名包括字符 a 的客户信息
  4. 查询身份证号码以110开头的客户信息
  5. 查询信用积分大于400的客户信息
  6. 查询上海的客户信息
  7. 查询所有女性的客户信息
  8. 查询信用积分小于300的男性客户信息
  9. 查询上海的女性客户信息
  10. 查询客户分布在哪些城市
  11. 查询长沙和深圳两地的客户信息
  12. 查询信用积分大于200小于400的客户信息
  13. 查询没有英文名的客户信息
  14. 查询姓名是两个字的客户信息
  15. 查询英文名不包含字符o的客户信息
SelECt * from user where userId='105'
SelECt * from user where name  like '王%'
SelECt * from user where ename  like '%a%'
SelECt * from user where  personId rlike '110.'
SelECt * from user where  credit>400
SelECt * from user where  city like '上海'
SelECt * from user where  sex like '女'
SelECt * from user where  credit<300 && sex like '男'
SelECt * from user where  city like '上海' && sex like '女'
SelECt city from user 
SelECt * from user where   city like '长沙' || city like '深圳'
SelECt * from user where    credit>200 && credit<400
SelECt * from user where   ename =''
SelECt * from user where    name like'__'
SelECt * from user where    ename    not rlike'o'
 SelECt * from user where    credit<200 && credit>400

评论 (0 个评论)

facelist

全部作者的其他最新日志



站点统计|举报|Archiver|手机版|小黑屋|Comsenz Inc.

GMT+8, , Processed in 0.195171 second(s), 9 queries .

Powered by javakc! X1.0

© 2004-2014 javakc

f1208.com 备案号:京ICP备14030918号-1

返回顶部