sql - mysql numeric database limitation -


Can not a boundary of the database name be made as numeric?

  mysql> Create Database 1;  

... Results in:

Error 1064 (42000): There is an error in your SQL syntax; To use '1' near

...., check the manual related to your MySQL server edition for the correct syntax or am I doing something wrong?

You can create a database with purely numerical names - you have to quote though:

  create database `1`;  

There are limitations on the names.


Comments

Popular posts from this blog

php - multilevel menu with multilevel array -

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

objective c - iPhone and it's wireless area -