Note: You are currently viewing documentation for Moodle 3.3. Up-to-date documentation for the latest stable version of Moodle is probably available here: Database reserved words.

Database reserved words: Difference between revisions

From MoodleDocs
No edit summary
 
mNo edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
It would be really helpful to have a list here. In the meantime, here are some links:
#REDIRECT [[Development:XMLDB reserved words]]
 
* [http://www.postgresql.org/docs/7.3/static/sql-keywords-appendix.html#KEYWORDS-TABLE Postgres]
* [http://dev.mysql.com/doc/refman/5.0/en/reserved-words.html MySQL]
* [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_ra-rz_9oj7.asp MSSQL]
* [http://www.cs.umbc.edu/help/oracle8/server.815/a67779/ap_keywd.htm Oracle]
* [http://publib.boulder.ibm.com/infocenter/db2e/v8r2/index.jsp?topic=/com.ibm.db2e.doc/db2eresword.html DB2]
 
Even better: [http://www.petefreitag.com/tools/sql_reserved_words_checker/?word=user SQL Reserved Words Checker].
 
It would be really good if the new XMLdb functions checked column and table names against these lists and refused to created things with reserved words as names.
 
Or alternatively, if they guaranteed to escape all SQL so it did not matter if we used reserved words.

Latest revision as of 20:08, 29 September 2006