当前位置:网站首页>B+树存储过程、触发器、Substring和substr的区别及Truncate和Delete的区别
B+树存储过程、触发器、Substring和substr的区别及Truncate和Delete的区别
2022-07-17 04:01:00 【Lord Chaser】
一、B+TREE的存储过程
B+树的一个关键设计,就是让树的一个节点的大小等于一个块的大小。节点内存储的元素,不是一个元素,而是一个可以装m个元素的有序数组。B+树的另一个设计,是非叶子节点只有索引数据和树形结构的指针,叶子节点存储具体的数据。这样非叶子节点就能存储更多的索引数据,一个3~4层的B+树就能索引几十个T的数据了。B+树还将同层的节点串链起来形成双向链表,这样就具有了范围查询和灵活调整的能力。B+树内每个节点内的数据通过二分查询算法进行查询。
二、触发器 存储过程
触发器是一种与表操作有关的数据库对象,当触发器在表上出现指定事件时,调用该对象,也就是说表的操作事件触发表上的触发器执行。
存储过程:执行效率和sql代码块封装。代码块封装也就是说我们可以组织多条sql放在一起执行,业务逻辑可以封装在存储过程中,这样不仅利于维护,执行效率也高。
三、substring和substr的区别
substring是获取从start位开始到end位之间的字符串,而substr是获取从start位开始后end位的字符串;(两种方法都包含start位的字符串,区别在于subtring不包含end位的字符串,substr包含)
四、truncate和dalete的区别
1、truncate:删除表中的内容,不删除表结构,释放空间
2、delete:删除内容,不删除表结构,但不释放空间
边栏推荐
- Chapter 0 performance platform godeye source code analysis - Course Introduction
- Openresty as a static resource server
- V4l2 learning materials collection
- 小程序毕设作品之微信电子书阅读小程序毕业设计(6)开题答辩PPT
- Simulation Implementation of library function
- [database] must know and be able at the end of the term ----- Chapter VIII database security
- Cabasicanimation pause \ enterprise action
- OSPF的优化和配置
- Software testing - use cases
- Skillfully use enterprise network disk to collect reports or summaries
猜你喜欢

Insert the laptop into the headset and still play it out (the personal test is valid)

Openresty as a static resource server

MAUI 框架入门学习05 MVVM数据模型理解

机器学习11:代价敏感学习

Wechat e-book reading applet graduation design of applet completion works (2) applet function

Wechat e-book reading applet graduation project (8) graduation project thesis template

donet framework4. X==windows form application new project, through system Data. SqlClient connects to sqlserver to query

Chapter 3 performance platform godeye source code analysis - memory module

Set administrator permissions for idea and console

小程序畢設作品之微信在線教育視頻點播學習小程序畢業設計(3)後臺功能
随机推荐
Wechat e-book reading applet graduation design of applet completion works (2) applet function
minimum spanning tree
【数据库】期末必知必会-----第七章 数据库完整性
小程序畢設作品之微信在線教育視頻點播學習小程序畢業設計(3)後臺功能
JS模态框
Mqant in-depth analysis
Introduction to Maui framework 05 MVVM data model understanding
Vs Code common shortcut keys
Chapter 3 performance platform godeye source code analysis - memory module
Cocos creator 3.0 foundation - event system
Common methods of C string
STM32——定时器系列(二)通用定时器
priority_ Introduction and use of queue
leetcode209. 长度最小的子数组
Chapter 0 performance platform godeye source code analysis - Course Introduction
[database] must know at the end of the term ----- Chapter 6 experiment
[database] knowledge and skills at the end of the term ----- Chapter 9 database design
wpf 找不到资源文件问题
[ruoyi Vue plus] learning notes 30 - redisson (VI) bounded blocking queue (redisson source code + Lua script)
ASP. Net1==visual studio create asp net demo