MySQL 视图
MySQL 大约 214 字视图
- 对于复杂的查询,在多次使用后,维护是一件非常麻烦的事情
- 解决:定义视图
- 视图本质就是对查询的一个封装
- 定义视图
create view stuscore as
select students.*,scores.score from scores
inner join students on scores.stuid=students.id;
- 视图的用途就是查询
select * from stuscore;
阅读 2075 · 发布于 2019-04-07
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Vue $nextTick 解决 v-if 切换后操作 DOM 报错问题阅读 668
-
macOS M1 芯片 IDEA Debug Rust 无法运行问题阅读 444
-
软考-系统架构设计师:数据库优化阅读 2361
-
skaffold init 提示 one or more valid Kubernetes manifests are required to run skaffold阅读 934
-
Java 储存相同 key 的 map阅读 3174
-
Angular error TS2564: Property 'xx' has no initializer and is not definitely assigned in the constructor.阅读 920
-
IDEA Debug Stream 流阅读 1147
-
Android 使用 CountDownTimer 类进行倒计时阅读 1833
-
Vue 页面切换时弹出确认框阅读 3422
-
MySQL 设置与更改用户密码阅读 1080