当前位置:网站首页>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)
边栏推荐
- 电子智慧套装教程
- National food safety risk assessment center: do not blindly and unilaterally pursue "zero addition" and "pure natural" food
- [multithreading] thread communication scheduling, waiting set wait(), notify()
- [Niuke's questions] nowcoder claims to have remembered all Fibonacci numbers between 1 and 100000. To test him, we gave him a random number N and asked him to say the nth Fibonacci number. If the nth
- 428 binary tree (501. mode in binary search tree, 701. insert operation in binary search tree, 450. delete node in binary search tree, 669. prune binary search tree)
- leetcode 19. Delete the penultimate node of the linked list
- d3dx9_ 39.dll how to repair -d3dx9_ 39.dll missing file download
- 软件测试基础-软件测试历史流程,分类,好处,限制
- d3dx9_ How to repair 25.dll? d3dx9_ 25.dll where to download
- Determine the maximum number of specific words in a string
猜你喜欢
Yyds dry inventory brief chrome V8 engine garbage collection

Unity 阴影——阴影平坠(Shadow pancaking)

Byte + Google super full kotlin learning King fried notes! Kotlin introductory tutorial + Advanced kotlin enhanced actual combat (with demo)
![[Niuke's questions] nowcoder claims to have remembered all Fibonacci numbers between 1 and 100000. To test him, we gave him a random number N and asked him to say the nth Fibonacci number. If the nth](/img/70/fa79ba38e28c41ed28bce2ec73cd79.png)
[Niuke's questions] nowcoder claims to have remembered all Fibonacci numbers between 1 and 100000. To test him, we gave him a random number N and asked him to say the nth Fibonacci number. If the nth

Mihayou sued Minmetals trust, which was exposed to product thunderstorms

LeetCode 124. Binary tree maximum path sum - binary tree series question 8

About MySQL: the phenomenon and background of the problem

Missing d3d10 How to repair DLL files? Where can I download d3d10.dll

Oracle概念二
![[fxcg] today's market analysis](/img/97/fc6faa5ab693e383f085b407ce1d85.jpg)
[fxcg] today's market analysis
随机推荐
全面解析零知识证明:消解扩容难题 重新定义「隐私安全」
软件测试基础-软件测试历史流程,分类,好处,限制
Solving Poisson equation by tensorflow
localDateTime类型的时间(2019-11-19T15:16:17) 用oracle的时间范围查询
关于VS2019C#如何建立登陆界面输入的用户名和密码需与Access数据库的记录相匹配
关于#mysql#的问题:问题遇到的现象和发生背景
Leetcode daily practice (sum of two numbers)
Ping An technology's practice of migrating from Oracle to ubisql
Ten common methods of arrays tools
2/15 topology sorting +dfs (the order of specified directions is very important) +bfs
C language set operation
Cesium realizes satellite orbit detour
#yyds干货盘点#简述chromeV8引擎垃圾回收
Hospital reservation and registration system - system structure
继手机之后 报道称三星也削减了电视等家电产品线的产量
428 binary tree (501. mode in binary search tree, 701. insert operation in binary search tree, 450. delete node in binary search tree, 669. prune binary search tree)
Oracle概念三
Handling method of occasional error reporting on overseas equipment
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
How much room does Migu video have for development without relying on sports events?