两表联合更新
update news
set news.special_id='|'+ltrim(rtrim(str(s.id)))+'|'
from news,special as s
where news.specialname=s.specialname and news.special_id is null 
posted on 2007-06-18 17:48  HTTP500  阅读(61)  评论(0编辑  收藏  举报