MySQL's different quote marks

后端 未结 5 459
有刺的猬
有刺的猬 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条回答
  •  旧时难觅i
    2020-12-17 21:13

    use ` (backquotes) for column name

    use ' or " for values

    Don't use backticks with column values. use either single or double quotes otherwise mysql considered that value as a column name.

提交回复
热议问题