我尝试运行以下命令:
UPDATE EN190
set Sys_DisplayTitle = (SELECT EP190_1 FROM EN190 WHERE Sys_ID = 4705)
WHERE Sys_ID = 4706
(SELECT EP190_1 FROM EN190 WHERE Sys_ID = 4705)的值是一个字符串:
someValue中
和我期望的那样(SELECT EP190_1 FROM EN190 WHERE Sys_ID = 4706)
但此字段中的值现在是以下字符串:
[someValue中]
我该如何解决这个问题?
答案 0 :(得分:2)
不是真的"清洁"解决方案,但它确实有效。
UPDATE EN190 set Sys_DisplayTitle = (SELECT EP190_1 FROM EN190 WHERE Sys_ID = 4705),
Sys_DisplayTitle= Sys_DisplayTitle.replace("[","").replace("]","")
WHERE Sys_ID = 4706
答案 1 :(得分:0)
以下查询SELECT EP190_1 FROM EN190 WHERE Sys_ID = 4705
返回列表而不是字符串