我正在设置一个新的数据库,我需要从另一个表中的concatenate 2列到1列。
我和HeidiSQL试过了。我的代码有错误吗?
UPDATE annotationfile
SET LABSDTM = CONCAT_WS('T',importfile.Collection_Date, importfile.Collection_Time) ;这是错误消息:
字段列表中的“未知列'importfile.Collection_Date'”。
我百分之百肯定字段列表实际上在那里。
发布于 2019-01-29 14:49:14
您需要加入导入,您的查询应该更像这样
UPDATE annotationfile join import on something
SET LABSDTM = CONCAT_WS('T',importfile.Collection_Date, importfile.Collection_Time)
;https://stackoverflow.com/questions/54423464
复制相似问题