mysql 개행문자 엔터등 삭제
페이지 정보
본문
UPDATE swearword SET swearword = REPLACE(swearword, '\r\n','');
UPDATE swearword SET swearword = REPLACE(swearword, '\n','');
UPDATE swearword SET swearword = REPLACE(swearword, CHAR(13),'');
중복 데이터 삭제
DELETE n1 FROM test.board n1, test.board n2 WHERE n1.idx > n2.idx AND n1.user_name = n2.user_name;
UPDATE swearword SET swearword = REPLACE(swearword, '\n','');
UPDATE swearword SET swearword = REPLACE(swearword, CHAR(13),'');
중복 데이터 삭제
DELETE n1 FROM test.board n1, test.board n2 WHERE n1.idx > n2.idx AND n1.user_name = n2.user_name;
관련링크
-
https://curryyou.tistory.com/68
6974회 연결
- 이전글mysql in 에다가 like 같이 쓰는 명령어. REGEXP 20.02.21
- 다음글javascript 위치정보 처리 (geolocation) 20.02.21
댓글목록
등록된 댓글이 없습니다.