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

asp.net - Change the driver in the connection string to a data source in VB.Net -

objective c - iPhone and it's wireless area -

unix - Listing all shared memory segments used by a process on AIX5.3+ -