Hey -- I'm currently working my way through Mr. Yank's PHP/MySQL book and jumped in tonight.
I was in the process of creating my very first table and kept running into an error message. I wanted to call one of the columns "desc" as in short for description but I kept getting a syntax error. So I played with it and thought, OK, I'll rename it "tell." Well, sure enough "tell" worked while "desc" produced syntax errors. How come?
These were nothing but simple TEXT columns.



"DESC" is a reserved keyword in SQL. It is an abbreviation for DESCENDING, which is used in ORDER BY statements.


Bookmarks