当前位置:网站首页>B+ tree stored procedures, triggers, substring and substr, and truncate and delete
B+ tree stored procedures, triggers, substring and substr, and truncate and delete
2022-07-19 04:29:00 【Lord Chaser】
One 、B+TREE Stored procedure
B+ A key design of tree , Let the size of a node of the tree be equal to the size of a block . Elements stored in nodes , Not an element , But one that can hold m An ordered array of elements .B+ Another design of the tree , Non leaf nodes only have index data and pointers to tree structures , Leaf nodes store specific data . In this way, non leaf nodes can store more index data , One 3~4 Layer of B+ Trees can index dozens T The data of the .B+ The tree also links the nodes of the same layer to form a two-way linked list , In this way, it has the ability of range query and flexible adjustment .B+ The data in each node in the tree is queried by the binary query algorithm .
Two 、 trigger stored procedure
A trigger is a database object related to table operations , When the trigger shows the specified event on the table , Call the object , That is, the operation event of the table triggers the trigger execution on the table .
stored procedure : Execution efficiency and sql Code block encapsulation . Code block encapsulation means that we can organize multiple sql Put it together to carry out , Business logic can be encapsulated in stored procedures , This is not only conducive to maintenance , It's also efficient .
3、 ... and 、substring and substr The difference between
substring It's getting from start Bit start to end String between bits , and substr It's getting from start After bit start end Bit string ;( Both methods involve start Bit string , The difference lies in subtring It doesn't contain end Bit string ,substr contain )
Four 、truncate and dalete The difference between
1、truncate: Delete the contents of the table , Do not delete table structure , Release space
2、delete: Delete content , Do not delete table structure , But it doesn't release space
边栏推荐
- 小程序毕设作品之微信电子书阅读小程序毕业设计(3)后台功能
- In the era of super video, what is the solution to the data flood?
- High performance and economy: aoteng persistent memory helps mobile cloud cope with severe memory challenges
- LeetCode之最大正方形(暴力求解和动态规划求解)
- Vs Code common shortcut keys
- Intel + Lenovo jointly launched open source cloud solutions
- 深度学习中的标量、向量、矩阵和张量的区别
- Wechat e-book reading of applet completion works (7) Interim inspection report
- Wechat e-book reading of small program graduation project (4) opening report
- [database] must know at the end of the term ----- Chapter 6 experiment
猜你喜欢
随机推荐
06 MAUI,WPF使用 MVVM Toolkit 框架 构建 MVVM 程序
Wechat e-book reading applet graduation project (6) opening defense ppt
2022/7/16 周赛
对称加密与非对称加密
使用kaggle跑李宏毅机器学习作业
OSPF routing control, anti ring related knowledge
Wechat e-book reading applet graduation design of applet completion works (3) background function
By voting for the destruction of STI by Dao, seektiger is truly community driven
leetcode209. Minimum length subarray
HCR慧辰北坡而行,一只游入数字营销服务的巨兽
Intel helps open medical service and promote the intellectualization of ultrasonic prenatal examination
CAD视频课程推荐 b站
[database] knowledge and skills at the end of the term ----- Chapter 9 database design
In the era of super video, what is the solution to the data flood?
Wkwebview sets the correct posture of custom useragent
Android kotlin custom LinearLayout
[database] must know and know at the end of the period ----- Chapter 12 database recovery
OSPF anti ring
OSPF的优化和配置
树状数组:[JXOI2017]加法 题解









