473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

naming standards

Does anyone know where I could find a consensus (in mysql community) on
naming conventions? Is there a published standard? I mean primarily the
naming of tables and fields.

Obviously, people use what works for them. But I'd like a look at any hard
and fast rules that all or most people stick to.
Jul 19 '05 #1
6 11755
Matthew,

If you're just talking about how to make names look in general....:
If you're a OO guru you'll probably want to use FieldNamesThatLookLikeThis.
If you want it to be readable by everyone else use_names_that_look_like_this.
Honestly, the underscores look much better. Spacing out names looks easier
than the German method noun of JammingNamesIntoOneAnotherAchtung!
Besides, if someone forgets to capitalize something, it will take forever to
figure out
what's going on.

Just my 2 cents.
....Don...

Matthew Crouch wrote:
Does anyone know where I could find a consensus (in mysql community) on
naming conventions? Is there a published standard? I mean primarily the
naming of tables and fields.

Obviously, people use what works for them. But I'd like a look at any hard
and fast rules that all or most people stick to.


Jul 19 '05 #2
Matthew,

If you're just talking about how to make names look in general....:
If you're a OO guru you'll probably want to use FieldNamesThatLookLikeThis.
If you want it to be readable by everyone else use_names_that_look_like_this.
Honestly, the underscores look much better. Spacing out names looks easier
than the German method noun of JammingNamesIntoOneAnotherAchtung!
Besides, if someone forgets to capitalize something, it will take forever to
figure out
what's going on.

Just my 2 cents.
....Don...

Matthew Crouch wrote:
Does anyone know where I could find a consensus (in mysql community) on
naming conventions? Is there a published standard? I mean primarily the
naming of tables and fields.

Obviously, people use what works for them. But I'd like a look at any hard
and fast rules that all or most people stick to.


Jul 19 '05 #3
Matthew,

If you're just talking about how to make names look in general....:
If you're a OO guru you'll probably want to use FieldNamesThatLookLikeThis.
If you want it to be readable by everyone else use_names_that_look_like_this.
Honestly, the underscores look much better. Spacing out names looks easier
than the German method noun of JammingNamesIntoOneAnotherAchtung!
Besides, if someone forgets to capitalize something, it will take forever to
figure out
what's going on.

Just my 2 cents.
....Don...

Matthew Crouch wrote:
Does anyone know where I could find a consensus (in mysql community) on
naming conventions? Is there a published standard? I mean primarily the
naming of tables and fields.

Obviously, people use what works for them. But I'd like a look at any hard
and fast rules that all or most people stick to.


Jul 19 '05 #4
Ray
"Matthew Crouch" <ma************@spamlessverizon.net> wrote in message news:<uX*****************@nwrddc02.gnilink.net>...
Does anyone know where I could find a consensus (in mysql community) on
naming conventions? Is there a published standard? I mean primarily the
naming of tables and fields.

Obviously, people use what works for them. But I'd like a look at any hard
and fast rules that all or most people stick to.


If you're hosting the db on a case-sensitive file system, then table
names will be case-sensitive. For this reason, I prefer to always use
lowercase for all table names (and field names for consistency). Then
you don't have to remember what case to use when.

I normally use name prefixes of "tblcbo_" for lookup tables, "tbllnk_"
for many-many link tables, "tbl_" for other tables. For other ideas,
try googling for "database naming conventions" - you'll get plenty of
reading material.

Ray Gurganus
Community IT Innovators
www.citidc.com
Jul 19 '05 #5
Ray
"Matthew Crouch" <ma************@spamlessverizon.net> wrote in message news:<uX*****************@nwrddc02.gnilink.net>...
Does anyone know where I could find a consensus (in mysql community) on
naming conventions? Is there a published standard? I mean primarily the
naming of tables and fields.

Obviously, people use what works for them. But I'd like a look at any hard
and fast rules that all or most people stick to.


If you're hosting the db on a case-sensitive file system, then table
names will be case-sensitive. For this reason, I prefer to always use
lowercase for all table names (and field names for consistency). Then
you don't have to remember what case to use when.

I normally use name prefixes of "tblcbo_" for lookup tables, "tbllnk_"
for many-many link tables, "tbl_" for other tables. For other ideas,
try googling for "database naming conventions" - you'll get plenty of
reading material.

Ray Gurganus
Community IT Innovators
www.citidc.com
Jul 19 '05 #6
Ray
"Matthew Crouch" <ma************@spamlessverizon.net> wrote in message news:<uX*****************@nwrddc02.gnilink.net>...
Does anyone know where I could find a consensus (in mysql community) on
naming conventions? Is there a published standard? I mean primarily the
naming of tables and fields.

Obviously, people use what works for them. But I'd like a look at any hard
and fast rules that all or most people stick to.


If you're hosting the db on a case-sensitive file system, then table
names will be case-sensitive. For this reason, I prefer to always use
lowercase for all table names (and field names for consistency). Then
you don't have to remember what case to use when.

I normally use name prefixes of "tblcbo_" for lookup tables, "tbllnk_"
for many-many link tables, "tbl_" for other tables. For other ideas,
try googling for "database naming conventions" - you'll get plenty of
reading material.

Ray Gurganus
Community IT Innovators
www.citidc.com
Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: David Inada | last post by:
Looking for any info on coding standards for ASP? Any tools that help with the review/formatting of code? Is it done mainly for the jscript/vbscript components? David
0
by: Matthew Crouch | last post by:
Does anyone know where I could find a consensus (in mysql community) on naming conventions? Is there a published standard? I mean primarily the naming of tables and fields. Obviously, people use...
2
by: Dibyendu Basu | last post by:
Hi, We are developing a ASP.NET based application with SQL Server 2000 as backend. Can you please tell us some resources/URL in Internet/MSDN which talks about naming standards and conventions...
1
by: BillyTheKid | last post by:
I've noticed that there are many who like to prefix variable names with m (module/member), n (number), s (string), g (global), etc., however this seems to be unnecessary with C# IMO. Does anyone...
4
by: Mark Broadbent | last post by:
stupid question time again to most of you experts but this is something that continually bothers me. I am trying to get into the habit of naming variables and controls in an assembly as per...
1
by: shsandeep | last post by:
Hi all, I need a proper index naming standard for my database (datawarehouse). This is what I have thought so far: Table name: TGL_MTR_VHCL Index name: XGL_MTR_VHCL I am just replacing a...
9
by: Pieter | last post by:
Hi, I thouht that I read somewhere that Visual Studio .NET 2005 is able to force naming conventions for controls etc., but I can't find it anymore :-/ did I dream this or is this real? :-) If...
35
by: Smithers | last post by:
Is it common practise to begin the name of form classes with "frm" (e.g., frmOneForm, frmAnotherForm). Or is that generally considered an outdated convention? If not "frm" what is a common or...
6
by: =?Utf-8?B?QmVu?= | last post by:
Hi all, Can you share with me the naming standards for the following : VB.Net, ASP.Net Naming Standards Namespaces Assemblies Classes and Structs Collection classes Delegate classes
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.