473,493 Members | 4,319 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 11762
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
3600
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
601
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
1508
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
1544
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
7133
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
2196
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
1100
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
12124
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
1427
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
6980
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
7157
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,...
1
6862
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7364
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...
1
4886
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1397
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
282
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.