Saturday, December 10, 2011

don't create dynamic tables

Relational database terminologyImage via Wikipedia
If you are creating a table dynamically, that most likely means you do not understand relational database ideology and as a result doing something wrong.
Just create all the tables at application setup from ready made dump and do not create any tables at runtime.
No need to use dynamic table name at all.
taken from:
http://stackoverflow.com/questions/3665784/php-pdo-prepared-statements-dont-work-when-creating-a-table
Enhanced by Zemanta

No comments: