Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在mySql中尝试了这个查询
update myTable set myColumn = 'USER'||id;
我收到这个错误
错误代码:0,SQL 状态:22001] 数据截断:截断不正确的 DOUBLE 值:'USER'
相同的查询适用于 oracle 和 db2
用于CONCAT()字符串连接而不是 oracle 运算符||:
CONCAT()
||
update myTable set myColumn = CONCAT('USER' , id);