What is the meaning of grave accent (AKA backtick) quoted characters in MySQL?

后端 未结 1 476
-上瘾入骨i
-上瘾入骨i 2020-12-13 08:52

I was wondering why some tutorials and other MySQL management tools use grave accent (`) in their queries like this one below:

SELECT `Table         


        
相关标签:
1条回答
  • 2020-12-13 09:27

    The grave is more commonly referred to as a "backtick", which MySQL uses to escape MySQL reserved words.

    Wrapping everything in backticks is very common in PHPMyAdmin and various examples because most would rather name tables and columns whatever they like without worrying about naming errors. I don't agree with the practice personally...

    0 讨论(0)
提交回复
热议问题