达梦数据库增删改查语句
时间: 2023-08-26 20:06:59 浏览: 273
达梦数据库的增删改查语句如下:
插入数据:
INSERT INTO test.battle(battle."id","nickname","position") VALUES (7,'韩信','打野'); \[1\]
插入语句的格式为:INSERT INTO 表名(字段1, 字段2, ...) VALUES (值1, 值2, ...);
修改数据:
UPDATE "TEST"."BATTLE" SET "nickname"='关羽' WHERE battle."id"=2; \[1\]
更新语句的格式为:UPDATE 表名 SET 字段1=新值1, 字段2=新值2, ... WHERE 条件;
查询数据:
SELECT * FROM "TEST"."BATTLE"; \[1\]
查询语句的格式为:SELECT * FROM 表名;
删除数据:
DELETE FROM "TEST"."BATTLE" WHERE battle."id"=7; \[1\]
删除语句的格式为:DELETE FROM 表名 WHERE 条件;
需要注意的是,在达梦数据库中,表名和字段名需要使用双引号括起来,否则无法识别。同时,语句中的条件部分可以根据具体需求进行修改。\[2\]
#### 引用[.reference_title]
- *1* [达梦数据库的增删改查和springboot 连接达梦数据库](https://blog.csdn.net/m0_48701672/article/details/128806514)[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^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [DM达梦数据库基本操作(表空间创建以及增删查改)](https://blog.csdn.net/weixin_43316702/article/details/107485323)[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^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文
相关推荐
















