MySQL: Create a table via code

To hand-code a table, or create a bunch of tables in a script, use this: CREATE TABLE `tablename`( `id` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` VARCHAR(255) NOT NULL ) You may note the “backticks” which are the little symbol on the same key as the tilde “~”, and are used to note the tablename [...]