What is the difference between single and double quotes in SQL?

前端 未结 6 1627
故里飘歌
故里飘歌 2020-11-22 07:30

What is the difference between single quotes and double quotes in SQL?

6条回答
  •  Happy的楠姐
    2020-11-22 08:16

    A simple rule for us to remember what to use in which case:

    • [S]ingle quotes are for [S]trings ; [D]ouble quotes are for [D]atabase identifiers;

    In MySQL and MariaDB, the ` (backtick) symbol is the same as the " symbol. You can use " when your SQL_MODE has ANSI_QUOTES enabled.

提交回复
热议问题