티스토리 뷰
1. replace(내용 치환하기)
SELECT * FROM test WHERE contents LIKE '%aaa%';
SELECT REPLACE(contents, 'aaa', 'bbb') AS new_contents FROM test;
UPDATE test SET contents = REPLACE(contents, 'aaa', 'bbb');
'DB > MySQL' 카테고리의 다른 글
erwin Reverse Engineering 사용하여 ERD생성 (0) | 2019.06.28 |
---|---|
툴(HeidiSQL, MySQL Workbench) (0) | 2019.06.27 |