Is it okay to start a Database name with an underscore?
For example...
_MyDatabase
TomTees
| SitePoint Sponsor |



Is it okay to start a Database name with an underscore?
For example...
_MyDatabase
TomTees


if you're asking whether mysql will object to it, i will leave it up to you to test it
here ya go, just run this --so, what did you get?Code:CREATE DATABASE _StartsWithUnderscore
but if you're asking whether it's a good convention or not, let me ask you -- why would you want to do that?



Just because something works doesn't mean it won't blow up later.
(Try draining the oil out of your car. Just because you can start it up and make it out of your driveway or to the end of the block doesn't mean you'd make it to the store and back...)
Because I have several test databases in phpMyAdmin, and I wanted to sort this new database to the top for organizational purposes. (I'm an organization freak.)but if you're asking whether it's a good convention or not, let me ask you -- why would you want to do that?
I would not do that for a production database, but it would be easier on my eyes during development.
TomTees


ah, okay, well, in that case, go right ahead
p.s. for your future reference, i do not have a car, i walk to the store
Bookmarks