NGA

SQLITE Escape quote

2020. 7. 7. 11:40

SQLITE에서는 quote를 escape하기 위해서는 \ 대신에 quote를 두번 사용해야 한다.

 

sqlite> select 'Hello there\'s';
   ...> '
   ...> ;
Error: near "';
'": syntax error


sqlite> select 'Hello there''s';
Hello there's


sqlite> select "Hello there""s";
Hello there"s

 

'DB > SQLITE' 카테고리의 다른 글

CREATE TABLE ~ as SELECT ~  (0) 2020.03.09
SQLITE Web Shell  (0) 2019.12.30

이 글을 공유합시다

facebook twitter googleplus kakaoTalk kakaostory naver band