I would like to create a table that is named with a number. Within phpMyAdmin it's totally possible. But when I try with create within a exec, it is not possible. I tried quotes and still no success. Only way I found was to add an alpha in front.
Won't work:
$Integer=1;
$listersDatabase->exec("create table $Integer(row int(15) auto_increment primary key)");
Will work:
$Integer=1;
$listersDatabase->exec("create table T$Integer(row int(15) auto_increment primary key)");
How can create a table name that is a number?
New Note:
If you are trying to create indexed tables to improve speed based on some ID for example user1_stats, user2_stats, user3_stats... you are wrong. MySQL allows you to partition tables based on some ID. MySQL performance: multiple tables vs. index on single table and partitions