各位大侠:
db2的字符串连接问题!!!
小弟在写db2的sql语句:
update table2
set name='2'+substr(name,2,length(name))
where sdfdsf like 'r:%'
时它总是报"+是非法字符"的意思,我只知道在sql server 里字符串用"+"连接的,但是db2里用什么连接呢?请告知
!
---------------------------------------------------------------
replace '+' as ' ¦ ¦'
or use concat function
---------------------------------------------------------------
hehe
---------------------------------------------------------------
sql server is not db2
db2 is not sql server