BrianM Posted April 18, 2008 Share Posted April 18, 2008 I've tried naming a table with numbers in it and it wont seem to work... is my SQL installation broken or is this just how the program defaults, and is there a way to use numbers in MySQL table names? Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted April 18, 2008 Share Posted April 18, 2008 From the mysql manual - Identifiers may begin with a digit but unless quoted may not consist solely of digits. Quote Link to comment Share on other sites More sharing options...
BrianM Posted April 18, 2008 Author Share Posted April 18, 2008 So my SQL table name can consist of all digits? Quote Link to comment Share on other sites More sharing options...
BrianM Posted April 19, 2008 Author Share Posted April 19, 2008 Well I see nowhere in the identifier qualifiers manual on the MySQL website that explains how to create a table name with all numbers... or whether or not it can even be done. Anyone have a better reference? Or maybe just show me the correct syntax for this, please. Quote Link to comment Share on other sites More sharing options...
dptr1988 Posted April 19, 2008 Share Posted April 19, 2008 It's a shame that you will double post but not even bother to check your other post. Here is my response in the other post: http://www.phpfreaks.com/forums/index.php/topic,193221.0.html. Here is a sample table definition that shows how to use all numbers for your idents: CREATE TABLE `34` ( `123` INT ); You can quote the numbers with the backtick('`') char. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.