当前位置:网站首页>Advanced learning of MySQL -- Application -- view, stored procedure, trigger
Advanced learning of MySQL -- Application -- view, stored procedure, trigger
2022-06-27 17:32:00 【Magic pig 9898】
These three are called MSQL Storage objects in , There is also a storage function
View
A view is a virtual table , The data in the view does not actually exist in the database , But in the actual table , The view just says , The representation of a data we query . It's generated dynamically .
In short , View does not save data , It saves the query SQL The logic of , The source of data is the basic table , Called base table , So when we create views , The main task of is to create this query SQL On statement .
establish
create [or replace] view View name [( List of names )] as select sentence [with [cascaded|local] check option]
Check options
cascade
Local
to update
The function of view
View case
stored procedure
What is stored procedure , What's the use
Basic grammar
Variable - System variables
Variable - User defined variables
Variable - local variable
if Judge
Parameters (in, out, inout)
case
while
repeat
loop
cursor
Condition handler -handler
Storage function
trigger
Case study 1(insert)
Case study 2(update)
Case study 3(delete)
边栏推荐
- Unity shadow shadow pancaking
- Use pyinstaller to package py files into exe. Precautions and error typeerror:_ get_ sysconfigdata_ name() missing 1...‘ check_ Solutions to exists'
- When the publish / subscribe mode encounters NET
- The European unified charging specification act was passed before the end of the year, and it is planned to expand to products such as laptop and keyboard
- Oracle概念二
- 2/14 preliminary calculation geometry
- [the way of programmer training] - 3 Character count statistics
- 2/15 topology sorting +dfs (the order of specified directions is very important) +bfs
- Dark horse programmer - software testing foundation class -02-30-45 tools open browser running code, audio, video, test points, audio and video labels, layout labels. Advanced hyperlink syntax, absolu
- Why should string be designed to be immutable?
猜你喜欢

Use pyinstaller to package py files into exe. Precautions and error typeerror:_ get_ sysconfigdata_ name() missing 1...‘ check_ Solutions to exists'

Related configuration commands of Huawei LACP

Hospital reservation and registration system - system structure

About MySQL: the phenomenon and background of the problem

Community sharing jumpserver in the eyes of senior open source users: a fortress machine for "Crazy" iteration

How to improve it electronic equipment performance management

Byte + Google super full kotlin learning King fried notes! Kotlin introductory tutorial + Advanced kotlin enhanced actual combat (with demo)
![[fxcg] today's market analysis](/img/97/fc6faa5ab693e383f085b407ce1d85.jpg)
[fxcg] today's market analysis

leetcode 19. Delete the penultimate node of the linked list

leetcode 92. Reverse linked list II
随机推荐
2022 Liaoning latest fire facility operator simulation test question bank and answers
Missing d3d10 How to repair DLL files? Where can I download d3d10.dll
How much room does Migu video have for development without relying on sports events?
关于VS2019C#如何建立登陆界面输入的用户名和密码需与Access数据库的记录相匹配
Cloud security daily 220216: root privilege escalation vulnerability found on IBM SaaS integration platform needs to be upgraded as soon as possible
JXL export Excel
2/15 topology sorting +dfs (the order of specified directions is very important) +bfs
d3dx9_ How to repair 25.dll? d3dx9_ 25.dll where to download
Qt5 signal and slot mechanism (demonstrate the correlation between the control's own signal and slot function)
Byte + Google super full kotlin learning King fried notes! Kotlin introductory tutorial + Advanced kotlin enhanced actual combat (with demo)
Sliding window + monotone queue concept and example (p1886 Logu)
National food safety risk assessment center: do not blindly and unilaterally pursue "zero addition" and "pure natural" food
Leetcode 704. Binary search
C语言教师工作量管理系统
C language set operation
模拟进程调度
leetcode 69. Square root of X
Kubernetes基础自学系列 | Ingress API讲解
Oracle concept II
d3dx9_ Where is 35.dll? d3dx9_ Where can I download 35.dll