<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Naming Conventions In MySQL</title>
	<atom:link href="http://ebergen.net/wordpress/2005/03/14/naming-conventions-in-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://ebergen.net/wordpress/2005/03/14/naming-conventions-in-mysql/</link>
	<description>You will probably want some waders, a pickaxe, and one of those hats with a light on it before you go in here.</description>
	<lastBuildDate>Fri, 11 May 2012 07:02:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Antony</title>
		<link>http://ebergen.net/wordpress/2005/03/14/naming-conventions-in-mysql/comment-page-1/#comment-358791</link>
		<dc:creator>Antony</dc:creator>
		<pubDate>Sun, 02 Oct 2011 23:06:15 +0000</pubDate>
		<guid isPermaLink="false">/?p=33#comment-358791</guid>
		<description>I enforce the &quot;no plural&quot; theory just because I often use ORMs such as Propel or Doctrine. These auto-generate functions that fetch relationships between tables, and these kind of function names often append an &quot;s&quot;. So if I was to call a table &quot;my_users&quot;, I&#039;d end up with an automatically generated function name &quot;getMyUserss()&quot;... which just looks weird.</description>
		<content:encoded><![CDATA[<p>I enforce the &#8220;no plural&#8221; theory just because I often use ORMs such as Propel or Doctrine. These auto-generate functions that fetch relationships between tables, and these kind of function names often append an &#8220;s&#8221;. So if I was to call a table &#8220;my_users&#8221;, I&#8217;d end up with an automatically generated function name &#8220;getMyUserss()&#8221;&#8230; which just looks weird.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Abolins</title>
		<link>http://ebergen.net/wordpress/2005/03/14/naming-conventions-in-mysql/comment-page-1/#comment-339407</link>
		<dc:creator>Peter Abolins</dc:creator>
		<pubDate>Mon, 27 Jun 2011 15:25:00 +0000</pubDate>
		<guid isPermaLink="false">/?p=33#comment-339407</guid>
		<description>I have been designing databases for a long time, and the issue of naming seems to be one where everyone has their own opinion. So long as we stick to English as the natural language, we will always have issues - no matter which naming scheme we choose:

1) Table-names singular - not ideal in all circumstances:
        select count(*) from goose; // Logically, a &quot;goose&quot; has a count of 1. 

2) Table-names plural - also not ideal, because English plurals are not consistent: 
        select geese.name from geese; // This looks like we are trying to select a name that is common to all geese, rather than the name of a single goose.

3) Table-names as containers - this would have to be the least useful convention:
        select gaggle.location from gaggle; // How many reeaders of our code are going to know that a row in gaggle represents a goose?

I would generally run with either option 1 or 2, depending on the client and the situation. So long as for a given system (could involve more than one database) you are consistent, it really doesn&#039;t matter.

:-)</description>
		<content:encoded><![CDATA[<p>I have been designing databases for a long time, and the issue of naming seems to be one where everyone has their own opinion. So long as we stick to English as the natural language, we will always have issues &#8211; no matter which naming scheme we choose:</p>
<p>1) Table-names singular &#8211; not ideal in all circumstances:<br />
        select count(*) from goose; // Logically, a &#8220;goose&#8221; has a count of 1. </p>
<p>2) Table-names plural &#8211; also not ideal, because English plurals are not consistent:<br />
        select geese.name from geese; // This looks like we are trying to select a name that is common to all geese, rather than the name of a single goose.</p>
<p>3) Table-names as containers &#8211; this would have to be the least useful convention:<br />
        select gaggle.location from gaggle; // How many reeaders of our code are going to know that a row in gaggle represents a goose?</p>
<p>I would generally run with either option 1 or 2, depending on the client and the situation. So long as for a given system (could involve more than one database) you are consistent, it really doesn&#8217;t matter.</p>
<p> <img src='http://ebergen.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://ebergen.net/wordpress/2005/03/14/naming-conventions-in-mysql/comment-page-1/#comment-326795</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sun, 24 Apr 2011 04:47:38 +0000</pubDate>
		<guid isPermaLink="false">/?p=33#comment-326795</guid>
		<description>Tables must be plural because they are repositories of data, a container of data. Singular name is used to refer an entity. This is why a object is named Car and the database table is CARS. Check the Oracle Naming conventions in http://www.oracle-base.com/articles/misc/NamingConventions.php</description>
		<content:encoded><![CDATA[<p>Tables must be plural because they are repositories of data, a container of data. Singular name is used to refer an entity. This is why a object is named Car and the database table is CARS. Check the Oracle Naming conventions in <a href="http://www.oracle-base.com/articles/misc/NamingConventions.php" rel="nofollow">http://www.oracle-base.com/articles/misc/NamingConventions.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Meissner</title>
		<link>http://ebergen.net/wordpress/2005/03/14/naming-conventions-in-mysql/comment-page-1/#comment-280398</link>
		<dc:creator>David Meissner</dc:creator>
		<pubDate>Wed, 11 Aug 2010 06:10:55 +0000</pubDate>
		<guid isPermaLink="false">/?p=33#comment-280398</guid>
		<description>Probably the best argument I can think of for avoiding plurals is in the case of subsequent tables (sub-tables) for the same basic object (e.g. client, client_group, client_user). The client table could accurately be called the parent table or controlling table and in a db GUI they will always be at the top of your list if named singular. On the contrary however, when using plurals your parent table is likely to fall below your sub-tables (e.g. client_group, client_user, clients).

Singular, is just my preference, but I thought I&#039;d throw it out there for you all.</description>
		<content:encoded><![CDATA[<p>Probably the best argument I can think of for avoiding plurals is in the case of subsequent tables (sub-tables) for the same basic object (e.g. client, client_group, client_user). The client table could accurately be called the parent table or controlling table and in a db GUI they will always be at the top of your list if named singular. On the contrary however, when using plurals your parent table is likely to fall below your sub-tables (e.g. client_group, client_user, clients).</p>
<p>Singular, is just my preference, but I thought I&#8217;d throw it out there for you all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Nuut</title>
		<link>http://ebergen.net/wordpress/2005/03/14/naming-conventions-in-mysql/comment-page-1/#comment-261989</link>
		<dc:creator>Kevin Nuut</dc:creator>
		<pubDate>Tue, 15 Dec 2009 17:18:20 +0000</pubDate>
		<guid isPermaLink="false">/?p=33#comment-261989</guid>
		<description>If you are dynamically handling table and Ids and foreign keys the use of plural tables is garbage. As stated above, plurality in English follows no standard which makes programatically accessing tables to keys impossible. This isn&#039;t about pretty sentences. It&#039;s code, not a story tale...</description>
		<content:encoded><![CDATA[<p>If you are dynamically handling table and Ids and foreign keys the use of plural tables is garbage. As stated above, plurality in English follows no standard which makes programatically accessing tables to keys impossible. This isn&#8217;t about pretty sentences. It&#8217;s code, not a story tale&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay Jagpal</title>
		<link>http://ebergen.net/wordpress/2005/03/14/naming-conventions-in-mysql/comment-page-1/#comment-249592</link>
		<dc:creator>Jay Jagpal</dc:creator>
		<pubDate>Fri, 04 Sep 2009 15:46:45 +0000</pubDate>
		<guid isPermaLink="false">/?p=33#comment-249592</guid>
		<description>But surely thats the point. Everyone knows its plural - so make it a plural.

SELECT image_name FROM images WHERE...

like you rightly said - plural.

Whats the official idea? does anybody have a link to naming conventions set by Sun?</description>
		<content:encoded><![CDATA[<p>But surely thats the point. Everyone knows its plural &#8211; so make it a plural.</p>
<p>SELECT image_name FROM images WHERE&#8230;</p>
<p>like you rightly said &#8211; plural.</p>
<p>Whats the official idea? does anybody have a link to naming conventions set by Sun?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://ebergen.net/wordpress/2005/03/14/naming-conventions-in-mysql/comment-page-1/#comment-152570</link>
		<dc:creator>David</dc:creator>
		<pubDate>Fri, 11 Jul 2008 17:37:56 +0000</pubDate>
		<guid isPermaLink="false">/?p=33#comment-152570</guid>
		<description>Everyone debates the plural/singular naming convention.  The problem with plural for me and for english speakers in general is that it is not always a matter of adding an &#039;s&#039;, as in situations with words like mouse and mice.  This in my opinion is where the plural argument falls on its face.  Great, you can read it like a sentence, but your names can get really confusing.  Everyone knows a table will usually have more than one record, so do we have to say it every time.</description>
		<content:encoded><![CDATA[<p>Everyone debates the plural/singular naming convention.  The problem with plural for me and for english speakers in general is that it is not always a matter of adding an &#8216;s&#8217;, as in situations with words like mouse and mice.  This in my opinion is where the plural argument falls on its face.  Great, you can read it like a sentence, but your names can get really confusing.  Everyone knows a table will usually have more than one record, so do we have to say it every time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ~A!</title>
		<link>http://ebergen.net/wordpress/2005/03/14/naming-conventions-in-mysql/comment-page-1/#comment-89267</link>
		<dc:creator>~A!</dc:creator>
		<pubDate>Sat, 09 Feb 2008 09:26:57 +0000</pubDate>
		<guid isPermaLink="false">/?p=33#comment-89267</guid>
		<description>The singular-singular approach makes very little sense to me. I always make the column names singular, but the table names plural where it makes sense.

select id, make, model from cars ...

makes more sense to me than

select id, make, model from car ....

If I had a filing cabinet for cars I had owned, the folder would read &quot;cars&quot; or possibly &quot;cars - 1978&quot;, &quot;cars - 1979&quot;, etc. If I were partitioning. ;)

IMHO, of course. We all do what works for us. As long as you do the same thing across the board, you won&#039;t be too beat up.

~A!</description>
		<content:encoded><![CDATA[<p>The singular-singular approach makes very little sense to me. I always make the column names singular, but the table names plural where it makes sense.</p>
<p>select id, make, model from cars &#8230;</p>
<p>makes more sense to me than</p>
<p>select id, make, model from car &#8230;.</p>
<p>If I had a filing cabinet for cars I had owned, the folder would read &#8220;cars&#8221; or possibly &#8220;cars &#8211; 1978&#8243;, &#8220;cars &#8211; 1979&#8243;, etc. If I were partitioning. <img src='http://ebergen.net/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>IMHO, of course. We all do what works for us. As long as you do the same thing across the board, you won&#8217;t be too beat up.</p>
<p>~A!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Original Sin</title>
		<link>http://ebergen.net/wordpress/2005/03/14/naming-conventions-in-mysql/comment-page-1/#comment-48266</link>
		<dc:creator>Original Sin</dc:creator>
		<pubDate>Tue, 21 Aug 2007 13:11:29 +0000</pubDate>
		<guid isPermaLink="false">/?p=33#comment-48266</guid>
		<description>I agree with Eric, when writing a query it makes more grammatical sense if everything is in singular. SELECT some_field FROM some_table sounds more precise than SELECT some_fields FROM some_tables.

/2 cents</description>
		<content:encoded><![CDATA[<p>I agree with Eric, when writing a query it makes more grammatical sense if everything is in singular. SELECT some_field FROM some_table sounds more precise than SELECT some_fields FROM some_tables.</p>
<p>/2 cents</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arjen Lentz</title>
		<link>http://ebergen.net/wordpress/2005/03/14/naming-conventions-in-mysql/comment-page-1/#comment-219</link>
		<dc:creator>Arjen Lentz</dc:creator>
		<pubDate>Fri, 25 Mar 2005 05:45:53 +0000</pubDate>
		<guid isPermaLink="false">/?p=33#comment-219</guid>
		<description>I generally recommend using plural for table names and singular for column names. It makes sense.
Yes, I appreciate it&#039;s debatable from the &quot;it&#039;s redundant&quot; aspect, but often redundancy serves a purpose: readability and maintainability. I reckon it&#039;s essentially an extension of the choice between short variable names that keep code lines short, versus longer descriptive variable names.</description>
		<content:encoded><![CDATA[<p>I generally recommend using plural for table names and singular for column names. It makes sense.<br />
Yes, I appreciate it&#8217;s debatable from the &#8220;it&#8217;s redundant&#8221; aspect, but often redundancy serves a purpose: readability and maintainability. I reckon it&#8217;s essentially an extension of the choice between short variable names that keep code lines short, versus longer descriptive variable names.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

