Apparently, I have to use ` instead of ’ to indicate a column in my MySQL query. When i use a regular quotation mark ( ’ ) or squared brackets ( ), the query doesn’t work.
How do I make this ( ` ) quotation mark with my keyboard, I’ve never seen it used before for SQL statements.
Thanks!
You don’t have to use it.
SELECT columnname
works just fine, as long as:
the column name isn’t a reserved word
there are no spaces in the column name
I always try to work without the backticks, because I don’t have them on my keyboard.
2 Likes
Thanks! Then I’ll just leave the backticks (glad I know how it’s called now) for what they are
For future reference, the ` is on the same key as the ~ on the left hand side of many keyboards.
1 Like
r937
September 11, 2015, 1:11pm
5
you must have seen it before, to believe that you need to use it
don’t use it… ever…
I copied an SQL Statement from PHPMyAdmin, the quotation marks must have been added there.
r937
September 11, 2015, 1:59pm
7
yes, phpmyadmin has an option to use backticks, unfortunately the default setting is on… so just turn it off
1 Like
That’s a good tip, thank you!
mawburn
September 11, 2015, 5:31pm
9
r937:
don’t use it… ever…
Never seen anyone say this before. I don’t use them, don’t see any reason to use them, but why shouldn’t you use them?
r937
September 11, 2015, 6:21pm
10
two well-worn phrases that capture the idea – forest and trees, signal-to-noise
Not on mine. And it’s a pain to have to use characters that are not on the keyboard
system
Closed
December 13, 2015, 3:04am
12
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.