需求:

将下表中的yxdm字段里非空的数据前加上90

具体sqlserver语句写法

update tableNameset set yxdm = CONCAT('90',yxdm) where yxdm is not null

CONCAT()

CONCAT()函数用于将两个字符串拼接起来
参考:https://blog.csdn/qq_23126581/article/details/81134491

更多推荐

sqlServer——CONCAT()字符串拼接函数使用