cam815 wrote:The safest way to wrap your SQL queries would be to `` the tables and columns and '' your text values.
Caveat: MySQL is weird in that by default it uses backticks (`) to escape identifiers. In standard SQL, double quotes (") are used for the same purpose. Oh, and some database vendors use brackets ([]) by default instead. Gah.
That said, I find that excessively paranoid since it is quite obvious that db_jobs and pro_name are identifiers, not keywords. On the other hand, it means that the readers of your SQL statements do not need to check in the event that they are unsure.