wr_content 에서 특정 코드를 지우고 싶습니다. 정보
wr_content 에서 특정 코드를 지우고 싶습니다.본문
<embed ~ 이렇게 나가는 코드인데 이 코드를 다 지우고 싶은데 디비에서 어떻게 하는지좀 부탁드립니다.
update g4_write_table set wr_content = str_replace('<embed type=application/x-shockwave-flash pluginspage=http://www.~~~P1_Prod_Version=ShockwaveFlash src=','','wr_content') where wr_is_comment='0';
이런식으로 하니 안되던데 부탁드립니다.
update g4_write_table set wr_content = str_replace('<embed type=application/x-shockwave-flash pluginspage=http://www.~~~P1_Prod_Version=ShockwaveFlash src=','','wr_content') where wr_is_comment='0';
이런식으로 하니 안되던데 부탁드립니다.
댓글 전체
mysql에서는 REPLACE(str,from_str,to_str) 함수네요.
REPLACE(wr_content,'<embed....','')
REPLACE(wr_content,'<embed....','')
감사합니다 !!