当前位置:网站首页>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”;


边栏推荐
- JVM的符号引用和直接引用是什么
- 调用api接口生成不同颜色的微信小程序二维码
- SSM项目小例子,SSM整合图文详细教程
- JSP file syntax
- The basis of C language grammar -- learning of local variables and storage categories, global variables and storage categories, and macro definitions
- Under the double reduction, the amount of online education has plummeted. Share 12 interesting uses of webrtc
- 904. fruit baskets
- P1296 whispers of cows (quick row + binary search)
- Establishment of smart dialogue platform for wechat official account
- 【Leetcode】76. 最小覆盖子串
猜你喜欢

P1296 whispers of cows (quick row + binary search)

Problems encountered in the application and development of Hongmeng and some roast

exec系列函数(execl、execlp、execle、execv、execvp)使用

The first batch of 12 enterprises settled in! Opening of the first time-honored product counter in Guangzhou

创建对象的时候堆内存的分配

MySQL第十四次作业--电子商城项目

創建對象的時候堆內存的分配

904. fruit baskets

Druid data source for background monitoring

Develop current learning objectives and methods
随机推荐
创建对象的时候堆内存的分配
Problems encountered in the application and development of Hongmeng and some roast
Testing practice - App testing considerations
Get the clicked position in the recyclerview
A list of common methods for customizing paint and canvas of view
【深度优先搜索】312.戳气球
Selection of webrtc video codec type VP8 H264 or other? (openh264 encoding, ffmpeg decoding)
Appium automation test foundation - mobile end test environment construction (II)
Searchview click failure
leetCode-链表的中间结点
Allocation de mémoire tas lors de la création d'objets
Luogu 1146 coin flip
动态库连接 - 符号冲突 - 全局符号介入
Day 3 array, pre post, character space, keyword and address pointer
Battery historian analyzes battery consumption
Win10安装tensorflow-quantum过程详解
libgstreamer-1.0. so. 0: cannot open shared object file: No such file or directory
Tensorflow dynamically allocates video memory
Blog article index Summary - wechat games
String类intern()方法和字符串常量池