3초기억력

Update, text 형식 replace 방법 본문

쿼리_MSSQL

Update, text 형식 replace 방법

잠수콩 2013. 4. 29. 17:34
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.



제목 :  Update, text 형식 replace 방법


소스 :


update Hp_Faq set faq_subject = replace(convert(varchar(max), faq_subject), '<pre>', '')
where faq_subject like '%<pre>%'


내용 :

text 형식의 칼럼은 vachar 타입 max 로 convert 후 replace 한다.


예제 소스 파일 :


 


Comments