求救!蛮难写的SQL语句!回答者都有分!谢谢 sql:update table set col= replace(col,'1','2') 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update tableset 列 = '2'+right(rtrim(列),len(rtrim(列))-1)--先备份! OR:update table set col= '2.'+right(col,3) update a01 set aa= '2'+ substring(aa,2,len(aa)) --更快update a01 set aa= '2'+ substring(aa,2,10) update db1 fieldname set fieldname=("2." + SUBSTRING(fieldname,1,LEN(fieldname)-2) update a01 set aa= '2'+ substring(aa,2,你的字符长度) update a01 set aa= '2'+ substring(aa,2,字符长度) update a01 set fieldname=("2." + SUBSTRING(fieldname,3,LEN(fieldname)-2)where fieldname like '1.%' SQL SERVER 不能用DECODE函数吗 查询某字段非数字的记录,请前辈指点,先谢了! 请问sql语句???(急急急) 有问题。。。。快来看。。。 查询语句问题:求助 关于邹建书中对数据备份恢复的疑问 SQL Server2000 关于用户权限问题 请教一个SQLSERVER2000的访问问题 请教判断SQL Server数据库中表格是否存在的返回值的问题 怎样把一幅图片存到sql server数据库中,又用编程的方式把它绘制出来 数据库同步,欢迎下载试用:http://www.csdn.net/cnshare/soft/14/14959.shtm 修改主键的问题
set 列 = '2'+right(rtrim(列),len(rtrim(列))-1)--先备份!
update table set col=
'2.'+right(col,3)
'2'+ substring(aa,2,len(aa))
update a01 set aa=
'2'+ substring(aa,2,10)
'2'+ substring(aa,2,你的字符长度)
'2'+ substring(aa,2,字符长度)
set fieldname=("2." + SUBSTRING(fieldname,3,LEN(fieldname)-2)
where fieldname like '1.%'