MySQL's different quote marks

后端 未结 5 457
有刺的猬
有刺的猬 2020-12-17 20:27

I am a bit new to MySQL and just wanted to know what is the difference between:

`   \'    \"

when I\'m using them in a query.

5条回答
  •  孤城傲影
    2020-12-17 20:54

    With ` you write mysql variable names. With ' you write mysql variable values

    For example

    SELECT * FROM `test` WHERE `x` = '1'
    

提交回复
热议问题