<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1021959" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1021959</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/mysql-best-column-type#comment-1136016</link>
    <description> &lt;p&gt;i read soomewhere that the percent and decimal versions are less stable than the hex codes. so why would someone making a large site use anything but hex?&lt;/p&gt;
&lt;p&gt;and for hex all you need is a char(6)&lt;br /&gt;
just use the fully qualified hex: &#039;000000&#039; through &#039;ffffff&#039;&lt;/p&gt;
 </description>
     <pubDate>Sun, 10 Aug 2003 18:44:36 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1136016 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/mysql-best-column-type#comment-1135875</link>
    <description> &lt;p&gt;Hey nitin,  I was remarking on your comment of enlarging the primary key from TINYINT to MEDIUMINT.  I wouldn&#039;t expect anyone to store colors in an integer field unless they want a headache.&lt;/p&gt;
 </description>
     <pubDate>Fri, 08 Aug 2003 05:59:23 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1135875 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/mysql-best-column-type#comment-1135871</link>
    <description> &lt;p&gt;Why on earth would you not use hex/rgb instead of names? Names aren&#039;t even fully supported across the board? &lt;/p&gt;
&lt;p&gt;I&#039;ll use the basics (black, white, blue, red, yellow, green, orange and purple) on occasion, but otherwise, it&#039;s hex/rgb in the CSS.&lt;/p&gt;
&lt;p&gt;That said, if we&#039;re talking about product colours (i.e. the khaki sweater, or the kelly green sweater), then colour names are better. For that application, a table that only lists colour code and colour name would be best.&lt;/p&gt;
 </description>
     <pubDate>Fri, 08 Aug 2003 04:34:31 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1135871 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/mysql-best-column-type#comment-1135868</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote:&lt;br /&gt;
That&#039;s just the standard web-design practice every experienced webmaster follows.
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Could you please show me a large, well developed site that uses color names INSTEAD of color codes?&lt;/p&gt;
 </description>
     <pubDate>Fri, 08 Aug 2003 04:16:38 +0000</pubDate>
 <dc:creator>KandieMan101</dc:creator>
 <guid isPermaLink="false">comment 1135868 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/mysql-best-column-type#comment-1135867</link>
    <description> &lt;p&gt;Hi Mark,&lt;/p&gt;
&lt;p&gt;With all due respect to your thoughts, I believe the point is not about storing color codes. The question was only about storing 50 colors and if we are talking about websites, it&#039;s always better to choose web-safe colors. So, again using a name is a much better option than using color codes directly. That&#039;s just the standard web-design practice every experienced webmaster follows.&lt;/p&gt;
&lt;p&gt;If you strictly want to design your table for codes, IMHO, then probably a better option is to use UNSIGNED INTEGER would be a better option.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
- Nitin&lt;/p&gt;
 </description>
     <pubDate>Fri, 08 Aug 2003 04:14:52 +0000</pubDate>
 <dc:creator>nitin</dc:creator>
 <guid isPermaLink="false">comment 1135867 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/mysql-best-column-type#comment-1135800</link>
    <description> &lt;p&gt;MEDIUMINT is insane (24 bit), SMALLINT should be all you need (16bit).  Unless we&#039;re going for 32bit True Color with an INT field.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 07 Aug 2003 07:39:42 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1135800 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Use appropriate column type</title>
    <link>https://www.webmaster-forums.net/web-database-development/mysql-best-column-type#comment-1135792</link>
    <description> &lt;p&gt;Looking at your requirement, you may be just fine with the following DDL&lt;/p&gt;
&lt;p&gt;CREATE TABLE COLOR(&lt;br /&gt;
  COLOR_ID TINYINT UNSIGNED NOT NULL,&lt;br /&gt;
  COLOR_NAME VARCHAR(20),&lt;br /&gt;
  PRIMARY KEY(COLOR_ID)&lt;br /&gt;
)&lt;/p&gt;
&lt;p&gt;TINYINT should take you 255 color ids. If you think you need more, you can always alter the table to use MEDIUMINT.&lt;/p&gt;
&lt;p&gt;Hope that helps,&lt;br /&gt;
- Nitin&lt;/p&gt;
 </description>
     <pubDate>Thu, 07 Aug 2003 06:17:22 +0000</pubDate>
 <dc:creator>nitin</dc:creator>
 <guid isPermaLink="false">comment 1135792 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/mysql-best-column-type#comment-1135330</link>
    <description> &lt;p&gt;What is this going to be used in? Are you looking for speed? To conserve space? Or simplicity in design?&lt;/p&gt;
 </description>
     <pubDate>Wed, 30 Jul 2003 21:38:09 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1135330 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/mysql-best-column-type#comment-1135329</link>
    <description> &lt;p&gt;i usually use a char(6) and store the color in ffffff format&lt;/p&gt;
 </description>
     <pubDate>Wed, 30 Jul 2003 21:34:50 +0000</pubDate>
 <dc:creator>druagord</dc:creator>
 <guid isPermaLink="false">comment 1135329 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
