当前位置:网站首页>Soft test --- database (3) data operation
Soft test --- database (3) data operation
2022-07-28 21:53:00 【Caterpillars who want to write programs】
Data manipulation
1.1 Common relational operations
Inquire about :
choice 、 Projection 、 Connect 、 except 、 and 、 hand over 、 Bad
Data update :
- Insert
- Delete
- modify
The expression ability of query is the most important part
- The traditional set operation is binomial operation , Include and 、 hand over 、 Bad 、 The generalized Cartesian product ;
- Specialized relational operations include : choice 、 Projection 、 Connect 、 except 4 Operations ;
1.1.1 Set operation noun interpretation
and :
R and S Is not owned by R And belong to S A collection of tuples , Write it down as R ∪ S ;
Bad :
R and S The difference is that it will only belong to R A collection of tuples , Write it down as R - S ;
hand over :
R and S The intersection of belongs to R and S A collection of tuples , Write it down as R ∩ S ;
1.2 Relationship between operation
Relational databases also have some special operations , Mainly projection 、 choice 、 Division and outer connection ;
In Relational Algebra , The formula which is composed by five basic algebraic operations through finite times is called relational algebraic operation expression , The operation result of the expression is still a relational expression ;
1.2.1 Projection
Projection is to map some attributes or selected columns in a relationship , And remove the tuples with duplicate attributes ;
1.2.2 choice
The selection operation is to select all tuples that meet the given conditions in the relationship ;
1.2.3 Connect
Connection is to obtain tuples satisfying certain conditions from the Cartesian product of two relations ;
1.2.4 division
Set up a relationship R Divide by relation S The result is relationship T , be T Include all in R But not here. S Properties and their values in , And T The tuple of and S All combinations of tuples of are in R in ;
边栏推荐
- Leetcode interview question 02.07. Linked list intersection [knowledge points: Double pointers, stack]
- C process control statement
- 中国农业工程学会农业水土工程专业委员会-第十二届-笔记
- 基于属性词补全的武器装备属性抽取研究
- 物联网技术栈之网关技术
- How to design workflow engine gracefully (glory Collection Edition)
- 基于对象的实时空间音频渲染丨Dev for Dev 专栏
- 标准C语言学习总结10
- 聊一聊数据库的行存与列存
- 将字符串指针赋值给数组[通俗易懂]
猜你喜欢
随机推荐
Leetcode linked list problem -- 142. circular linked list II (learn the linked list by one question and one article)
LeetCode·581.最短无序连续子数组·双指针
微信小程序开发公司你懂得选择吗?
[brother hero July training] day 28: dynamic planning
【英雄哥七月集训】第 28天:动态规划
Standard C language learning summary 10
顺序表的实现
Kubedm builds kubernetes cluster
物联网技术栈之网关技术
日志瘦身神操作:从5G优化到1G到底是怎么做到的!(荣耀典藏版)
融合LSTM与逻辑回归的中文专利关键词抽取
[极客大挑战 2019]Secret File&文件包含常用伪协议以及姿势
The general strike of three factories in St France may make the shortage of chips more serious!
如何高效、精准地进行图片搜索?看看轻量化视觉预训练模型
中文招聘文档中专业技能词抽取的跨域迁移学习
[geek challenge 2019] secret file & file contains common pseudo protocols and gestures
微星宝安工厂失火!官方回应:无人员受伤,产线不受影响!
如何优雅的设计工作流引擎(荣耀典藏版)
不用Swagger,那我用啥?
Library borrowing system "suggested collection"