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? Link to comment https://forums.phpfreaks.com/topic/101782-solved-naming-a-mysql-table-with-numbers/ 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. Link to comment https://forums.phpfreaks.com/topic/101782-solved-naming-a-mysql-table-with-numbers/#findComment-520765 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? Link to comment https://forums.phpfreaks.com/topic/101782-solved-naming-a-mysql-table-with-numbers/#findComment-520768 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. Link to comment https://forums.phpfreaks.com/topic/101782-solved-naming-a-mysql-table-with-numbers/#findComment-520838 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. Link to comment https://forums.phpfreaks.com/topic/101782-solved-naming-a-mysql-table-with-numbers/#findComment-520878 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.