SQL批量在列前面加入指定字符

SQL Server 方式

UPDATE bd_cubasdoc SET custcode = '0'+SUBSTRING(custcode,0,99) WHERE pk_areacl = '0001661000000000SMBV'

Oracle 方式

update bd_cubasdoc SET custcode='0'||substr(custcode,0);

There are no comment yet.

HTML tag cannot be used in this comment.