当前位置:网站首页>Day 7 summary & homework
Day 7 summary & homework
2022-07-27 17:05:00 【xbxbgk】
Internal connection :inner join : Only show the public data in the table
External connection :left join /right join
Internal connection : Display the data common to the table , No data is displayed ; Left connection in outer connection , Mainly the table on the left , If there is no data in the right table, it shows null, The right connection , Based on the table on the right , If there is no data in the left table, it shows null
Multiple tables associated query
Two table operation
select surface 1. Field , surface 2. Field from surface 1 inner join surface 2 on surface 1. Field = surface 2. Field where Conditions
Three table operation
select surface 1. Field , surface 2. Field , surface 3. Field from surface 1 inner join surface 2 on surface 1. Field = surface 2. Field inner join surface 3 on surface 1. Field = surface 3. Field where Conditions
Database optimization :
The rational use of char and varchar
Build a reasonable table Generally, the frequently used data is put in a table , Infrequently used in sub table If the query uses multi table associated query
Fair use sql sentence , Reduce subqueries Use multi table associated query
Index in table
Reduce the use of queries *
Homework 1

Homework 2

Homework 3

Homework 4

边栏推荐
- Hyperlink parsing in MD: parsing `this$ Set() `, ` $` should be preceded by a space or escape character`\`
- 两表联查1
- 领导:谁再用redis过期监听实现关闭订单,立马滚蛋!
- Get the array list of the previous n days and the previous and subsequent days of the current time, and cycle through each day
- 内置对象(下)
- Database foundation
- 牛客题目——最小的K个数
- Apache
- LOJ 576 - "libreoj noi round 2" sign in game [line segment tree]
- Servlet中文乱码setContentType设置无效
猜你喜欢
随机推荐
Interpretation of C basic syntax: summarize some commonly used but easily confused functions (i++ and ++i) in the program (bit field)
Program environment and preprocessing of C language
How to modify the decoding clock [chapter]
Three level cache of pictures in Android
从零开始Blazor Server(1)--项目搭建
Unity 入门
Start from scratch blazor server (1) -- project construction
Matplotlib drawing error: "! Latex error: file `type1cm.sty 'not found." solution
数据采集之:巧用布隆过滤器提取数据摘要
Niuke topic -- binary search tree and bidirectional linked list
String numeric type converted to thousands
Servlet Chinese garbled setcontenttype setting is invalid
Global string object (function type) +math object
MySQL - linked table query
Jerry's book can't find Bluetooth solutions [article]
MySQL—连表查询
Database foundation
Data collection: skillfully using Bloom filter to extract data summary
数据库基础
牛客题目——用两个栈实现队列、包含min函数的栈、有效括号序列









