Topic awaiting preservation: MySql table names |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: 1393 |
posted 10-25-2006 22:06
Is it bad practice to name MySql tables starting with numbers? (ie: 1121_table) |
Lunatic (VI) Inmate From: under the bed |
posted 10-26-2006 05:37
I don't know what the official word is, but I would say a big ol' YES! |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 10-26-2006 11:23
Really, if you want to start your tables with numbers, chances are high your layout is rather messed up |
Paranoid (IV) Inmate From: 1393 |
posted 10-26-2006 14:29
That's what I thought... here's what I'm doing. I've got a controlroom w/ database1 that has all the user info tables and that good stuff... then I've set up another database (database2) that I would like the controlroom to create tables for as I add sites. So if I add another site to the controlroom on database1 like www.web.com it would be givin a unique ID (1121) and then create all the tables needed for it in database2... which will actually hold the content for www.web.com. So, I was thinking it would be easiest to just append the unique ID before the table (1121_faq_table)... I'm I way off here? Thanks for your input. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 10-26-2006 14:48
You need neither seperate tables nor seperate databases for that. |
Paranoid (IV) Inmate From: 1393 |
posted 10-26-2006 15:12
Right, that is happening in database1... Sorry, I'm horrible at explaining things. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 10-26-2006 15:25
You can create databases in code as well. ( CREATE DATABASE, but your account needs the rights, of course) |
Paranoid (IV) Inmate From: 1393 |
posted 10-26-2006 18:35
Ah, I see what you're saying... I'll have to go back and re-think the controls then; thanks for your input TP. Peace. |