본문 바로가기

데이터베이스/PostgreSQL

(스크랩) ★★★ PostgreSQL 에서 '이스케이프 시퀀스' 조회 방법

text_date like '%\n%'

위 처럼 필터를 걸면 안 나오고

 

text_date like E'%\n%'

위 처럼 걸면 필터가 잘 먹힌다.

 

 


 

 

https://stackoverflow.com/questions/12101168/how-can-i-search-for-r-n-in-an-sql-select-like-statement

 

How can i search for \r\n in an SQL SELECT LIKE statement?

I'm working on a site for a client who did not properly sanitize some of their form data. In particular, they did not do anything to account for line-breaks received from textareas. So, in hundre...

stackoverflow.com


https://freedeveloper.tistory.com/191

 

이스케이프 시퀀스 \n \r \t \a \b

이스케이프 시퀀스 이스케이프 시퀀스 의미 \a 경고음 \b 백스페이스 \f 페이지 나누기(폼 피드): 프린트 전용 \n 줄바꿈, 개행 \r 복귀(캐리지 리턴) \t 수평 탭 \v 수직 탭: 프린트 전용 \\ \ \' ' \" " `?

freedeveloper.tistory.com