当前位置:网站首页>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 .
边栏推荐
- 嵌入式常用计算神器EXCEL,欢迎各位推荐技巧,以保持文档持续更新,为其他人提供便利
- Heavyweight news | softing fg-200 has obtained China 3C explosion-proof certification to provide safety assurance for customers' on-site testing
- 软考高级(信息系统项目管理师)高频考点:项目质量管理
- Solve project cross domain problems
- 414. The third largest digital buckle
- Lora sync word settings
- 新手程序员该不该背代码?
- 2022年6月国产数据库大事记-墨天轮
- Build op-tee development environment based on qemuv8
- 【10点公开课】:视频质量评价基础与实践
猜你喜欢
![[10:00 public class]: basis and practice of video quality evaluation](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[10:00 public class]: basis and practice of video quality evaluation

手写ABA遇到的坑

UNI-Admin基础框架怎么关闭创建超级管理员入口?

Chapter 4: talk about class loader again

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

数据处理技巧(7):MATLAB 读取数字字符串混杂的文本文件txt中的数据

将MySQL的表数据纯净方式导出

ResNet-RS:谷歌领衔调优ResNet,性能全面超越EfficientNet系列 | 2021 arxiv

2020 Bioinformatics | GraphDTA: predicting drug target binding affinity with graph neural networks

GNN, please deepen your network layer~
随机推荐
【数字IC手撕代码】Verilog无毛刺时钟切换电路|题目|原理|设计|仿真
Barcodex (ActiveX print control) v5.3.0.80 free version
Web APIs DOM 时间对象
HDR image reconstruction from a single exposure using deep CNNs阅读札记
go多样化定时任务通用实现与封装
如何用程序确认当前系统的存储模式?
Aardio - 通过变量名将变量值整合到一串文本中
Classic sql50 questions
Management background --5, sub classification
C # réalise la liaison des données du rapport Crystal et l'impression du Code à barres 4
Notes de développement du matériel (10): flux de base du développement du matériel, fabrication d'un module USB à RS232 (9): création de la Bibliothèque d'emballage ch340g / max232 SOP - 16 et Associa
Build op-tee development environment based on qemuv8
AI 企业多云存储架构实践 | 深势科技分享
labelimg的安装与使用
MariaDB database management system learning (I) installation diagram
Unity3d minigame unity webgl transform plug-in converts wechat games to use dlopen, you need to use embedded 's problem
2020 Bioinformatics | GraphDTA: predicting drug target binding affinity with graph neural networks
墨西哥一架飞往美国的客机起飞后遭雷击 随后安全返航
[sciter]: encapsulate the notification bar component based on sciter
2022-07-05 使用tpcc对stonedb进行子查询测试