select SUBSTRING (A列 , 1 ,CHARINDEX ( ' ' , A列 ) ) from A表
这个可以把A列空格前的字符取出来。
更新
update A表 set B列=(select SUBSTRING (A列 , 1 ,CHARINDEX ( ' ' , A列 ) ))
update 表名 set b = substring(a,1,charindex(' ',a)) ,
a = substring(a,charindex(' ',a),len(a))
where a like('% %')