|------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 写出sql语句,查询所有年龄大于20岁的员工 |
| | 2 | select * from employee where age>20; |
| | 3 | 写出sql语句,查询所有年龄大于等于22小于25的女性员工 |
| | 4 | select * from employee where age between 22 and 25 and sex='女'; |
| | 5 | 写出sql语句,统计男女员工各有多少名 |
| | 6 | select Sex,count(*) as count from employee group by Sex; |
| | 7 | 写出sql语句,按照年龄降序获取员工信息 |
| | 8 | select * from emloyee where age index; |
| | 9 | 写出sql语句,获取员工中哪个姓名具有重名现象 |
| | 10 | select Name,count(*) as count from employee group by Name having count>1; |
| | 11 | 写出sql语句,查询所有姓张的员工 |
| | 12 | select * from employee where Name like '张%'; |
| | 13 | 写出sql语句,查询住址为北京的前3条记录 |
| | 14 | select * from employee where Address='北京' limit 3; |
| | 15 | 写出sql语句,查询员工总数 |
| | 16 | select count(*) from employee; |
| | 17 | 写出sql语句,向表中插入一条记录 |
| | 18 | insert into employee |
| | 19 | values("周一","男","25","张家口"); |
| | 20 | 写出sql语句,修改员工张四的住址为南京 |
| | 21 | update employee set Address='南京' where Name='张四'; |
| | 22 | 写出sql语句,删除年龄大于24岁的女员工 |
| | 23 | delete from employee where Sex='女' and Age>24; java第二十四课. · 7719ec3 · WL---code/WL仓库 - Gitee.com |
练 习
qq我爱学习2023-11-30 11:31
相关推荐
minebmw73 小时前
Oracle 19.29 中 ORA-00600 [4193] 错误完全解析与恢复指南m0_377618233 小时前
Golang怎么连接MySQL数据库_Golang MySQL连接教程【总结】weixin_586061464 小时前
C#怎么通过反射获取类属性_C#如何动态读取元数据【进阶】Pluto_CSND4 小时前
PostgreSQL 聚合函数总览资深数据库专家4 小时前
总账EBS 应用服务器1 的监控分析m0_678485454 小时前
CSS如何控制表格单元格边框合并_通过border-collapse实现m0_748839494 小时前
如何用组合继承模式实现父类方法复用与子类属性独立qq_334563555 小时前
PHP源码是否依赖特定芯片组_Intel与AMD平台差异【操作】qq_206901395 小时前
如何使用C#调用Oracle存储过程_OracleCommand配置CommandType.StoredProcedurem0_748839495 小时前
CSS如何实现元素平滑滚动_使用scroll-behavior属性设置