hc学习平台

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

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

2021-01-06 13:57:33 查看(260) 回复(0)

  1. 查询在2019年4月1日以后开卡的银行卡信息
  2. 查询银行卡余额大于等于10000小于等于20000的银行卡信息
  3. 查询银行卡密码以“123”开头的银行卡信息
  4. 查询用户id是106的银行卡信息
  5. 查询被冻结的银行卡的余额
  6. 查询在2019年3月开卡的银行卡信息
  7. 查询在2019年3月、4月开卡的银行卡信息

select*from card
select*from card where openDate>'2019-04-01'
select*from card where money<20000 and money>10000
select*from card where password like '123%'
select*from card where userID='106'
select*from card where isLock=1
select*from card where openDate between'2019-03-01'  and '2019-03-31' 
select*from card where openDate between '2019-03-01' and '2019-04-30'

评论 (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

返回顶部