2007년 10월 24일 수요일

[query] 특정 문자 삭제, 특정 문자 추가

# 특정 문자 삭제
update products set name= replace(name, '(K)', '') where  product_id="8B3OJ02SBKZ55";  

# 특정 문자 삽입
update products set name= CONCAT('(K)', name) where  product_id=' 8B26T100GRZXL ;

댓글 없음:

댓글 쓰기