日期:2014-05-18  浏览次数:20445 次

企业管理器打开数据表后,如何替换里面的字段数据?
用企业管理器实行SQL
select   *   from   getdata
列出数据后,发现hname字段的数据很多包含*字符,请问如何把这些*替换掉?

------解决方案--------------------
用企业管理器实行SQL
select * from getdata
列出数据后,发现hname字段的数据很多包含*字符,请问如何把这些*替换掉?


update getdata
set hname = replace(hname , '* ' , '你需要的字符串 ')
------解决方案--------------------
update getdata
set hname = replace(hname , '* ' , ' ')

------解决方案--------------------
update getdata
set hname= '??? '
where hname= '* '


是这个意思???不太明白
------解决方案--------------------
这些数据千万不要替换,除非你是真的想更新数据。
------解决方案--------------------
明白啥意思了... ~ 真快啊
------解决方案--------------------
replace(hname , '* ' , '你需要的字符串 ')

------解决方案--------------------
replace函数