当前位置:网站首页>数据库操作 技能6
数据库操作 技能6
2022-07-26 08:41:00 【wuyunbilige66】
1.创建test数据库

2. 在test数据库中创建student表

3. 向student表中添加记录

4.使用sql语句查询出表中id,name,和address字段的所有内容

5.使用sql语句查询出表中所有同学的id,name,score

6.更改useremail字段的数据类型为varchar(50)

7. 向表中添加一个字段,字段名称为“pingjia”,字段类型为varchar(20)

8.更改姓名是张三的同学的分数为92
9.如果80分为及格线,查询出所有不及格的同学的详细信息
10.把姓名是“小红”的同学的分数在原来的基础上+20
11.使用关键字in,查询id值是1或5或7的同学的基本信息
12.查询id值在4至9的所有同学的基本信息
13.查询姓名是小红并且分数大于60的同学的基本信息
14.查询姓名是小红或者分数大于90的同学的基本信息
15.查询score字段值是NULL的同学的基本信息
16.查询name不是张三的同学的id,name,和score
17.按地址升序,成绩降序
18.对城市进行去重显示

边栏推荐
- 基于Raft共识协议的KV数据库
- 12306 ticket system crawling - 1. Saving and reading of city code data
- Ansible important components (playbook)
- 03异常处理,状态保持,请求钩子---04大型项目结构与蓝图
- [untitled]
- Analysis on the query method and efficiency of Oracle about date type
- Ueditot_ JSP SSRF vulnerability recurrence
- Winter vacation homework & Stamp cutting
- [recommended collection] MySQL 30000 word essence summary index (II) [easy to understand]
- Please tell me if there is any way to increase the write out rate when the Flink SQL client is in the sink table. When synchronizing through sink table
猜你喜欢

Registration of finite element learning knowledge points

SSH,NFS,FTP

ES6模块化导入导出)(实现页面嵌套)

Okaleido上线聚变Mining模式,OKA通证当下产出的唯一方式
![[freeswitch development practice] use SIP client Yate to connect freeswitch for VoIP calls](/img/8b/d5792a00fc5798d3d960f1f1b1088e.png)
[freeswitch development practice] use SIP client Yate to connect freeswitch for VoIP calls

SSH,NFS,FTP

Study notes of automatic control principle -- dynamic model of feedback control system

Web概述和B/S架构

【搜索专题】看完必会的搜索问题之洪水覆盖

内存管理-动态分区分配方式模拟
随机推荐
Foundry教程:使用多种方式编写可升级的智能合约(上)
When developing flutter, idea_ ID cannot solve the problem
P1825 [USACO11OPEN]Corn Maze S
What are the contents of Oracle OCP and MySQL OCP certification exams?
Study notes of automatic control principle --- stability analysis of control system
SSH,NFS,FTP
Please tell me if there is any way to increase the write out rate when the Flink SQL client is in the sink table. When synchronizing through sink table
After MySQL 8 OCP (1z0-908), hand in your homework
内存管理-动态分区分配方式模拟
利用模m的原根存在性判断以及求解
Cve-2021-26295 Apache OFBiz deserialization Remote Code Execution Vulnerability recurrence
海内外媒体宣发自媒体发稿要严格把握内容关
KV database based on raft consensus protocol
TypeScript版加密工具PasswordEncoder
Typescript snowflake primary key generator
OA项目之我的会议(查询)
Oracle 19C OCP 1z0-082 certification examination question bank (36-41)
Mysql database connection / query index and other common syntax
Memory management based on C language - Simulation of dynamic partition allocation
[suggestions collection] summary of MySQL 30000 word essence - locking mechanism and performance tuning (IV) [suggestions collection]









