2011年9月1日 星期四

善用 Replace(), substitute()

SQL- Replace()
select a.password, len(a.password), len(replace(a.password,'/','')) from pu_user a

Excel - substitute()
=LEN(D2) - LEN(SUBSTITUTE(D2,"+",""))

沒有留言: