注册

sql批量插入报错

2023/08/30 749 3 已解决

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:8
【操作系统】:centos7
【CPU】: inter
【问题描述】*: 批量插入sql报错,插入数据的表的其中一个字段是另一张表的id

insert into "MIDDLEG"."t_sys_config_dictionary"
( "dictionary_name", "dictionary_value", "is_deleted", "sys_config_id", "dictionary_enable")
VALUES
('测试1','1','2',(select id from "MIDDLEG"."t_sys_config_parent" where param_value = 'warehouseManufacturer') ,'1'),
('测试2','2','2',(select id from "MIDDLEG"."t_sys_config_parent" where param_value = 'warehouseManufacturer') ,'1');
1693367640331.jpg

回答 0
暂无回答
扫一扫
联系客服