If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > database naming conventions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-24-07, 10:29
Panoy Panoy is offline
Registered User
 
Join Date: Mar 2007
Posts: 77
database naming conventions

Hi to all,

What are the database naming conventions that is widely accepted in the database world? I just want to ask if what is the good way to name database, tables and fields? Do we go with the plural form or the singular one?

Is it just a matter of personal preference or it doesn't matter what you choose, as long as you do it consistently?

Thanks and god bless.
Reply With Quote
  #2 (permalink)  
Old 09-24-07, 10:37
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
yes, consistency is important

tbl_you tbl_know tbl_what tbl_really tbl_annoys tbl_me? tbl_when tbl_people tbl_put tbl_"tbl" tbl_as tbl_a tbl_prefix tbl_in tbl_all tbl_their tbl_table tbl_names

how come these people never put "col" as the prefix on column names?

consistency is important, and so is common sense

as for singular/plural, my preference is plural table names, because tables usually have more than one row in them
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 09-24-07, 10:48
Panoy Panoy is offline
Registered User
 
Join Date: Mar 2007
Posts: 77
Hahahahahha...that was good

Well, usually there is some usefulness in that, i think...

The "tbl" sometimes help differentiate objects in your database..

Maybe you could attest to that

Thanks.
Reply With Quote
  #4 (permalink)  
Old 09-24-07, 10:55
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
You should not different between objects in your naming convention. That mixes the logical and physical designs, and can lead to inconsistencies later in development.
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
  #5 (permalink)  
Old 09-24-07, 12:27
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,246
naming conventions
..the return of a perrenial favourite
...here are some earlier contributions on naming conventions
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #6 (permalink)  
Old 09-25-07, 11:52
certus certus is offline
Registered User
 
Join Date: Dec 2003
Location: Canada
Posts: 710
Google "ISO 11179-5". It is the international standards organization's naming convention.
__________________
visit: relationary
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On