dbTalk Databases Forums  

Field naming conventions

comp.databases.oracle comp.databases.oracle


Discuss Field naming conventions in the comp.databases.oracle forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Charlie
 
Posts: n/a

Default Field naming conventions - 12-22-2006 , 02:38 PM






Is there a resource for database field naming conventions?

Jerry



Reply With Quote
  #2  
Old   
Paul
 
Posts: n/a

Default Re: Field naming conventions - 12-23-2006 , 07:45 AM









"Charlie" <jadkins4 (AT) yahoo (DOT) com> wrote:

Quote:
Is there a resource for database field naming conventions?

Avoid at all costs using reserved words (either in your target db or
others that you may know about). Some dbs allow you to do this by
quoting or other mechanisms. Avoid like the plague.


There is of course the underscore versus capitalisation debate - I
prefer underscores - SQL standard is not case sensitive.


Paul...


Quote:
Jerry

--

plinehan __at__ yahoo __dot__ __com__

XP Pro, SP 2,

Oracle, 10.2.0.1 (Express Edition)
Interbase 6.0.2.0;

When asking database related questions, please give other posters
some clues, like operating system, version of db being used and DDL.
The exact text and/or number of error messages is useful (!= "it didn't work!").
Thanks.

Furthermore, as a courtesy to those who spend
time analysing and attempting to help, please
do not top post.


Reply With Quote
  #3  
Old   
Paul
 
Posts: n/a

Default Re: Field naming conventions - 12-23-2006 , 01:37 PM





Paul <paul (AT) see (DOT) my.sig.com> wrote:


Quote:
Is there a resource for database field naming conventions?

Have a look here.

http://www.kudzuworld.com/Articles/D.../index.en.aspx


But if I were you, I'd ignore the rule about


Do Not Use Column Names That Match Parent Table Names, in fact I'd do
the reverse - I would always have the same name for the same thing in
different tables - you can figure it out by always qualifying your
field names with the table name. Furthermore, if the same field
appears in many tables, you won't always have to be trying to figure
out "What did I call it in the AccountsSummary table?".


Furthermore, always implement these fields in *_every_* table you
create:

DateTime_Created, User_Created, Last_Modified_DateTime,
Last_Modified_User

with triggers.


This will save you an unbelievable amount of time in development.


Paul...


Quote:
Paul...

--

plinehan __at__ yahoo __dot__ __com__

XP Pro, SP 2,

Oracle, 10.2.0.1 (Express Edition)
Interbase 6.0.2.0;

When asking database related questions, please give other posters
some clues, like operating system, version of db being used and DDL.
The exact text and/or number of error messages is useful (!= "it didn't work!").
Thanks.

Furthermore, as a courtesy to those who spend
time analysing and attempting to help, please
do not top post.


Reply With Quote
  #4  
Old   
Paul
 
Posts: n/a

Default Re: Field naming conventions - 12-23-2006 , 01:40 PM





Paul <paul (AT) see (DOT) my.sig.com> wrote:


Quote:
But if I were you, I'd ignore the rule about

Do Not Use Column Names That Match Parent Table Names, in fact I'd do

Scratch what I said here - I thought he was talking about a particular
field name in different tables, rather than having a table "Location"
with a field "Location" - I tend to agree on this point.


Quote:
Paul...
--

plinehan __at__ yahoo __dot__ __com__

XP Pro, SP 2,

Oracle, 10.2.0.1 (Express Edition)
Interbase 6.0.2.0;

When asking database related questions, please give other posters
some clues, like operating system, version of db being used and DDL.
The exact text and/or number of error messages is useful (!= "it didn't work!").
Thanks.

Furthermore, as a courtesy to those who spend
time analysing and attempting to help, please
do not top post.


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.