当前位置:网站首页>MySQL job 11 - application de la vue
MySQL job 11 - application de la vue
2022-06-26 10:20:00 【M0 61961898】

create table lingjinzheng_stu(
s_id int(11) primary key not null unique,
s_name varchar(20) not null,
addr varchar(50) not null,
tel varchar(50) not null
);
create table lingjinzheng_sign(
s_id int(11) primary key not null unique,
s_name varchar(20) not null,
s_sch varchar(50) not null,
s_sign_sch varchar(50) not null
);
create table lingjinzheng_stu_mark(
s_id int(11) primary key not null unique,
s_name varchar(20) not null,
mark int(11) not null
);
insert into lingjinzheng_stu values
(“1”,“ZhangPeng”,“Hebei”,“13889075861”),
(“2”,“LiXiao”,“Shandong”,“13953508223”),
(“3”,“HuangYun”,“Shandong”,“13905350996”);

insert into lingjinzheng_sign values
(“1”,“ZhangPeng”,“Hign School1”,“Peking University”),
(“2”,“LiXiao”,“Hign School2”,“Peking University”),
(“3”,“HuangYun”,“Hign School3”,“Tsinghua University”);

insert intolingjinzgheng_stu_mark values
(“1”,“ZhangPeng”,“730”),
(“2”,“LiXiao”,“725”),
(“3”,“HuangYun”,“736”);
create view lingjinzheng_baida(id,name,mark,sch)as
select m.s_id,m.s_name,m.mark,s.s_sign_sch
from lingjingzheng_stu_mark mlingjinzheng_sign s
where m.s_id=s.s_id and m.mark>=720 and s.s_sign_sch=“Peking University”;
create view lingjinzheng_qinghua(id,name,mark,sch)as
select m.s_id,m.s_name,m.mark,s.s_sign_sch
from lingjinzheng_stu_mark m,zhongzheng_sign s
where m.s_id=s.s_id and m.mark>=725 and s.s_sign_sch=“Peking University”;
select * fromlingjingzheng_qinghua;
update lingjinzheng_stu_mark set mark=mark-10
where lingjingzheng_stu_mark.s_name=“HuangYun”;


边栏推荐
- Specific implementation comparison between different programming languages
- Automated testing -- on the coexistence of Unitest and pytest initialization
- Standard implementation of streaming layout: a guide to flexboxlayout
- String类intern()方法和字符串常量池
- Full introduction to flexboxlayout (Google official flexible implementation of flow layout control)
- Cento7.7 elk installation simple record
- What should the preview do?
- In the fragment, the input method is hidden after clicking the confirm cancel button in the alertdialog (this is valid after looking for it on the Internet for a long time)
- Does the go compiled executable have dynamic library links?
- The basis of C language grammar -- pointer (multidimensional array, function, summary) learning
猜你喜欢

String constant pool, class constant pool, and runtime constant pool

36 qtextedit control input multiline text

Omni channel, multi scenario and cross platform, how does app analyze channel traffic with data

Go learning notes (83) - code specification and common development skills

mysql学习总结

Appium自动化测试基础 — 移动端测试环境搭建(二)

Win10安装tensorflow-quantum过程详解

Little red book - Summary of internal sales spike project

Configuration internationale

【LeetCode】59. Spiral matrix II
随机推荐
WGCLOUD的web ssh服务端口是多少
118. 杨辉三角
What is a botnet
字符串常量池、class常量池和运行时常量池
从tf 1.x到tf 2.6(遇到的就过来更新更新)
Differences between JVM, Dalvik and art
String类intern()方法和字符串常量池
【深度优先搜索】312.戳气球
Threadmode interpretation of eventbus
【无标题】
#云原生征文# 在 Google Kubernetes Cluster 上使用 HANA Expression Database Service
Testing practice - App testing considerations
1. 两数之和(LeetCode题目)
libmagic 介绍
The basis of C language grammar -- function definition learning
Solution to network request crash in retrofit2.8.1
Battery historian analyzes battery consumption
What is LSP
cento7.7安装ELK简单记录
MySQL第六章总结