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

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -