求一条语句 有一个字段,数据中包含空格,比如130001 -01,230001 -01我想去掉中间的空格,这么写这条语句? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 replace(col , ' ' , '') update tab set fldname=replace(fldname,' ','') select replace('130001 -01,230001 -01 b',' ','8')'13000188888-01,230001888888-018b' update tab set colname=replace(colname,' ','')where charindex(' ',colname)>0 update tbname set 字段=replace(字段,' ','') update tbname set 字段=left(6,字段)+'-01' update tb t1=replace(t1,' ','') create table a(a1 varchar(100))goinsert into aselect '130001 -01' union allselect '230001 -01'select replace(a1,' ','') from a 求:条件赋值的 SQL语句 求sql server 2000 group by 多列分组的语句 转移数据库后找不到存储过程 大虾帮忙!急! SQL Server 2005 存储过程调用另一个存储过程,能否操作其返回的结果集??????? MSSQL客户机上交数据 SqlException: 用户 'sa' 登录失败。各位大哥大姐高手前辈救命阿 请教 --happyflystone(没枪的狙击手) 动态查询的思考 sql的外键命名 sqlserver2000日志如何打开? 转换datetime
set fldname=replace(fldname,' ','')
select replace('130001 -01,230001 -01 b',' ','8')
'13000188888-01,230001888888-018b
'
update tab
set colname=replace(colname,' ','')
where charindex(' ',colname)>0
update tbname set 字段=replace(字段,' ','')
update tbname set 字段=left(6,字段)+'-01'
create table a(a1 varchar(100))
go
insert into a
select '130001 -01' union all
select '230001 -01'select replace(a1,' ','') from a