728x90
반응형
REPLACE(field, '수정 전', '수정 후');
ex)
update 테이블 set 컬럼=replace(컬럼 ,'수정 전','수정 후');
update coordi_type_table set coordi_type=replace(coordi_type, 'a' , 'b' );
coordi_type_table
coordi_type (치환 전) | coordi_type(치환 후) |
a | b |
728x90
반응형
'Programming > MySQL' 카테고리의 다른 글
[MySQL] 외부접속 허용하기 (0) | 2015.06.30 |
---|---|
[MySQL] mysql csv 입력 (0) | 2015.06.30 |
auto_increment initialization (초기화) (0) | 2015.06.30 |
[MySQL] 컬럼 & 필드 합치기 concat(), group_concat() (0) | 2015.06.30 |
몇 년치 날짜데이터 테이블 만들기 (0) | 2015.06.30 |
댓글