mysql Data truncation error -
i tried query in mysql
update mytable set mycolumn = 'user'||id;
i error
error code: 0, sql state: 22001] data truncation: truncated incorrect double value: 'user'
the same query works in oracle , db2
use concat()
string concatenation instead of oracle operator ||
:
update mytable set mycolumn = concat('user' , id);
Comments
Post a Comment