MySQL - Using quotes inside of inserted values

임재현·2021년 4월 27일
0

MySQL

목록 보기
5/52
post-custom-banner

using quotes inside of inserted values

If you're wondering how to insert a string (VARCHAR) value that contains quotations, then here's how.

You can do it a couple of ways:

  • Escape the quotes with a backslash: "This text has \"quotes\" in it" or 'This text has \'quotes\' in it'
  • Alternate single and double quotes: "This text has 'quotes' in it" or 'This text has "quotes" in it'
profile
임재현입니다.

0개의 댓글