练 习

写出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

相关推荐

  1. 练 习

    2023-12-05 23:30:01       43 阅读
  2. Linq练习

    2023-12-05 23:30:01       41 阅读
  3. mybatis练习

    2023-12-05 23:30:01       30 阅读
  4. shell练习

    2023-12-05 23:30:01       30 阅读
  5. C++<span style='color:red;'>练习</span>

    C++练习

    2023-12-05 23:30:01      23 阅读

最近更新

  1. TCP协议是安全的吗?

    2023-12-05 23:30:01       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2023-12-05 23:30:01       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2023-12-05 23:30:01       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2023-12-05 23:30:01       18 阅读

热门阅读

  1. docker中安装mysql,远程连接

    2023-12-05 23:30:01       38 阅读
  2. 迭代器模式-C++实现

    2023-12-05 23:30:01       36 阅读
  3. Linux图片处理命令详解

    2023-12-05 23:30:01       35 阅读
  4. 在Docker上部署Springboot项目

    2023-12-05 23:30:01       43 阅读
  5. RepViT:从ViT视角重新审视移动CNN

    2023-12-05 23:30:01       32 阅读
  6. RepViT: 从ViT视角重新审视移动CNN

    2023-12-05 23:30:01       42 阅读
  7. 在oracle的scn详细说明

    2023-12-05 23:30:01       36 阅读
  8. Go map类型

    2023-12-05 23:30:01       37 阅读
  9. error转string

    2023-12-05 23:30:01       31 阅读
  10. SpringMVC消息转换器 对日期类型进行统一格式化

    2023-12-05 23:30:01       30 阅读