当前位置:网站首页>Mysql database basic operations DML
Mysql database basic operations DML
2022-07-06 22:24:00 【Dark horse programmer official】
MySQL Strong performance , It is one of the most widely used databases at present , With MySQL For learning the prototype, it is also convenient to master other databases later , Now let's give you Give a comprehensive explanation MySQL8.0 New features , From zero foundation to high-level one-stop learning , Combined with actual cases, we can gain something !
▼ MySQL8.0 introduction - Advanced learning notes :( Summary )
- The first 1 speak :SQL Overview and database system introduction
- The first 2 speak :MySQL brief introduction 、 Detailed installation steps and use
- The first 3 speak :MySQL Common graphics management tools
- The first 4 speak :MySQL Basic operation of database -DDL
One 、 Basic introduction
DML It refers to the data operation language , The full English name is Data Manipulation Language, Used to update the data records of tables in the database .
keyword :
- Insert insert
- Delete delete
- to update update

Two 、 Insert data into
Grammar format
insert into surface ( Name 1, Name 2, Name 3...) values ( value 1, value 2, value 3...); // Insert some... Into the table
insert into surface values ( value 1, value 2, value 3...); // Insert all columns... Into the table Example
insert into student(sid,name,gender,age,birth,address,score)
values(1001,' male ',18,'1996-12-23',' Beijing ',83.5);
insert into student values(1001,' male ',18,'1996-12-23',' Beijing ',83.5);Data modification
Grammar format
update Table name set Field name = value , Field name = value ...;
update Table name set Field name = value , Field name = value ... where Conditions ;Example
-- Change the address of all students to Chongqing
update student set address = ' Chongqing ’;
-- speak id by 1004 The address of the student is changed to Beijing
update student set address = ' Beijing ' where id = 1004
-- speak id by 1005 The address of the student is changed to Beijing , The grade is revised to 100
update student set address = ' Guangzhou ',score=100 where id = 1005Data deletion
Grammar format
delete from Table name [where Conditions ];
truncate table Table name perhaps truncate Table name Example
-- 1. Delete sid by 1004 Student data for
delete from student where sid = 1004;
-- 2. Delete all data from the table
delete from student;
-- 3. Clear table data
truncate table student;
truncate student;Be careful :delete and truncate The principle is different ,delete Only delete content , and truncate Be similar to drop table , It can be understood as deleting the whole table , Then create the table ;
3、 ... and 、 summary
Tableau in , Data sources can be roughly divided into two categories , They are local data sources ( file ) And server data sources ( service ).
Tableau Sorting is divided into automatic sorting and custom sorting , It can be in the order of data sources 、 Letter 、 Field 、 Manual 、 Sort by nesting rules .
边栏推荐
- [sciter]: encapsulate the notification bar component based on sciter
- 2022-07-04 mysql的高性能数据库引擎stonedb在centos7.9编译及运行
- 第3章:类的加载过程(类的生命周期)详解
- i.mx6ull搭建boa服务器详解及其中遇到的一些问题
- 0 basic learning C language - interrupt
- [10:00 public class]: basis and practice of video quality evaluation
- 基於 QEMUv8 搭建 OP-TEE 開發環境
- Problems in the process of opencv300 cmake generating project
- Management background --2 Classification list
- ZABBIX proxy server and ZABBIX SNMP monitoring
猜你喜欢

基于 QEMUv8 搭建 OP-TEE 开发环境

pytorch_YOLOX剪枝【附代码】
![[linear algebra] determinant of order 1.3 n](/img/6e/54f3a994fc4c2c10c1036bee6715e8.gif)
[linear algebra] determinant of order 1.3 n

【10点公开课】:视频质量评价基础与实践

Chapter 4: talk about class loader again

C # réalise la liaison des données du rapport Crystal et l'impression du Code à barres 4

二叉(搜索)树的最近公共祖先 ●●

NPDP认证|产品经理如何跨职能/跨团队沟通?

That's why you can't understand recursion
![[MySQL] online DDL details](/img/7e/97098d7ed5802c446bbadaf7035981.png)
[MySQL] online DDL details
随机推荐
Heavyweight news | softing fg-200 has obtained China 3C explosion-proof certification to provide safety assurance for customers' on-site testing
Research and investment strategy report of China's VOCs catalyst industry (2022 Edition)
2022年6月国产数据库大事记-墨天轮
GNN, please deepen your network layer~
Force buckle 575 Divide candy
Attack and defense world ditf Misc
MySQL数据库基本操作-DML
Insert sort and Hill sort
HDR image reconstruction from a single exposure using deep CNNs阅读札记
中国1,4-环己烷二甲醇(CHDM)行业调研与投资决策报告(2022版)
Oracle Performance Analysis 3: introduction to tkprof
A Mexican airliner bound for the United States was struck by lightning after taking off and then returned safely
Attack and defense world miscall
Installation and use of labelimg
插入排序与希尔排序
在IPv6中 链路本地地址的优势
Anaconda installs third-party packages
枚举与#define 宏的区别
HDU 2008 digital statistics
软考高级(信息系统项目管理师)高频考点:项目质量管理