phpMySQL use backticks ` to surround column names, and I’ve just see people use backticks in shell scripts.
Is that the same if they use ‘ ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In
MySQL, backticks could be used to enclose table and column names which are reserved words, like this:Single quotes just denote a string constant:
In shells, backticks let you use the output of one command as an argument to another command:
will execute
dateand use its output as an argument toecho.Single quotes let you use whitespaces, dollar signs and backslashes inside the arguments:
will output the string
$HOSTNAMEas it is,both will output the value of the environment variable
HOSTNAME.