mysqldml操作命令
时间: 2023-09-25 18:15:13 浏览: 104
MySql操作命令
MySQL的DML操作命令主要包括INSERT、SELECT、UPDATE和DELETE。INSERT用于向表中插入新的数据,语法格式为:
INSERT INTO 表名 [ ( 字段1, 字段2, 字段3, … ) ] VALUES ( ‘值1’, ‘值2’, ‘值3’, …)。
SELECT用于查询表中的数据,并返回所需的结果集,语法格式为:
SELECT 列名 FROM 表名 WHERE 条件。
UPDATE用于修改表中已有的数据,语法格式为:
UPDATE 表名 SET 列名 = 值 WHERE 条件。
DELETE用于删除表中的数据,语法格式为:
DELETE FROM 表名 WHERE 条件。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [MySQL之DML常用命令](https://blog.csdn.net/qq_46337973/article/details/120089677)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [MySQL基础—数据库操作](https://download.csdn.net/download/weixin_38667697/13685425)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [MySQL的使用-DML操作](https://blog.csdn.net/baidu_41211699/article/details/106544920)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文