• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 348
  • Last Modified:

sql statments difference

what is the difference of both of the following sql statement

"SELECT userid, username FROM user_table WHERE username='$username'";
"SELECT `userid`, `username` FROM ` user_table ` WHERE `username` = '$username'";
1 Solution
Greg AlexanderLead DeveloperCommented:
Nothing, but the weird tic marks could cause problems when using PHP, they are just separators of field and table names.

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now