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

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

debian - 500 Error upon login into Plesk Admin - auth.php3? -