Open SumCompanyInc opened 6 months ago
The quotes around column names aren't single quotes, they're backquotes, aka backticks. To differentiate a column name from an SQL reserved word, use the back-ticks around the column name. Normal single quotes are for static string values.
The editor used in this forum interpretes backticks as code blocks, so I can't demonstrate here, but look closely at the original code, and you'll see the difference.
It's accepted good practice to always out backticks around column names for readability.
Refer to the MySQL manual for your version, or google it.
Atlassian has a good article on the topic.
(https://www.atlassian.com/data/sql/single-double-quote-and-backticks-in-mysql-queries)
Just a Note.. first off, really appreciate the effort and the book, been trying to develop in joomla for a many many years.
and apologies, I'm still beginner of beginners.. i did read the book through once already, but now on the 2nd go around, and trying to put in some of the code etc.
looking to create the projects table, i got a lot of errors from mysql, it didnt like a lot of the way the book puts it.
the following is the table creation query that finally took (i also went ahead and made the types consistent with the way phpmyadmin shows the cases)