当前位置:网站首页>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:删除内容,不删除表结构,但不释放空间
边栏推荐
- Ftxui basic notes (botton button component Foundation)
- Eas (energy aware scheduling) green energy-saving scheduler
- Wechat online education video on demand learning applet graduation design (1) development outline
- [super cloud terminal to create a leading opportunity] local computing cloud management, Intel helps digitalize Education
- Some problems after xcode11 new project
- Vs Code common shortcut keys
- C language explanation series - practice and consolidation of circular sentences, explanation of binary search
- Structure gets the address of the main structure (struct) through member variables
- 【微信小程序】超易懂的条件渲染和列表渲染
- Openresty 做静态资源服务器
猜你喜欢

Machine learning 11: cost sensitive learning

小程序毕设作品之微信电子书阅读小程序毕业设计(6)开题答辩PPT

小程序毕设作品之微信电子书阅读小程序毕业设计(3)后台功能

JS模态框

Xdc 2022 Intel technology special session: Intel Software and hardware technology builds the cornerstone of cloud computing architecture

机器学习09:无监督学习

ospf综合实验

C language explanation series - practice and consolidation of circular sentences, explanation of binary search

Wechat e-book reading of applet completion works (7) Interim inspection report

Xcode11 add a boot page (the launch images source option is missing after the upgrade)
随机推荐
MAUI 框架入門學習05 MVVM數據模型理解
How does the enterprise post office set up SPF records?
若依框架包名修改器
Wechat e-book reading applet graduation design of applet completion works (1) development outline
如何更有效的过滤病毒/垃圾邮件!
小程序毕设作品之微信电子书阅读小程序毕业设计(1)开发概要
[database] must know at the end of the term ----- Chapter 2 relational data model
IPhone device numbers of major models
[database] must know and be able at the end of the term ----- Chapter 10 database programming
Skillfully use enterprise network disk to collect reports or summaries
基于STM32的SG90舵机实验含代码(HAL库)
OSPF基础优化
Avplayer adds playback progress monitoring
Cabasicanimation pause \ enterprise action
Leetcode7 DFS + dynamic programming + double pointer
leetcode7-dfs+动态规划+双指针
巧用企业网盘收取报告或总结
Xcode11 add a boot page (the launch images source option is missing after the upgrade)
C# 使用this关键字串联构造函数调用方法
牛客2021训练联盟热身训练赛Interstellar Love(并查集)