update zhzl_address t set t.add_administration_num=replace(t.add_administration_num,chr(10),'')
去掉回车
update zhzl_address t set t.add_administration_num=replace(t.add_administration_num,chr(13),'')
去掉空格
update zhzl_address t set t.add_administration_num=trim(t.add_administration_num)
是存数据库时用的假如取的数据放在content中,
content=Replace(content,chr(10),"<br>")
content=Replace(content,chr(13)&chr(10),"<p>")
content=Replace(content,chr(10)&chr(13),"</p>")
content=Replace(content,"
","&nbsp")
&nbsp代表空格。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)