<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Technology Articles &#187; CHAR(1)</title>
	<atom:link href="http://technologydribble.info/tag/char1/feed/" rel="self" type="application/rss+xml" />
	<link>http://technologydribble.info</link>
	<description>Articles About Technology</description>
	<lastBuildDate>Mon, 19 Dec 2011 11:11:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Oracle VARCHAR2(1) vs CHAR(1)?</title>
		<link>http://technologydribble.info/2009/08/17/oracle-varchar21-vs-char1/</link>
		<comments>http://technologydribble.info/2009/08/17/oracle-varchar21-vs-char1/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 01:44:15 +0000</pubDate>
		<dc:creator>ryelpango</dc:creator>
				<category><![CDATA[CHAR]]></category>
		<category><![CDATA[Datatype]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[VARCHAR2]]></category>
		<category><![CDATA[CHAR(1)]]></category>
		<category><![CDATA[VARCHAR2(1)]]></category>

		<guid isPermaLink="false">http://technologydribble.info/?p=127</guid>
		<description><![CDATA[Well, minimum size for both Oracle datatypes is 1 byte. So in terms of storage, they&#8217;ll both consume either null or 1 byte in storage space. So, when declaring a character datatype with a length of 1, it doesn&#8217;t really &#8230; <a href="http://technologydribble.info/2009/08/17/oracle-varchar21-vs-char1/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Well, minimum size for both Oracle datatypes is 1 byte. So in terms of storage, they&#8217;ll both consume either null or 1 byte in storage space. So, when declaring a character datatype with a length of 1, it doesn&#8217;t really matter which one you use. The rules change when the length is greater than 1 though.</p>
<p>This is because CHAR is a fixed character data, so values held in this datatype is always RPAD&#8217;ed with blanks. Storing character data as VARCHAR2 will save space on, not just the character field, but any indexes that reference it.</p>
<p>As a personal preference, I always use VARCHAR2. The most important practice though is to be consistent. For example, if you use CHAR for a 1 byte character datatype and VARCHAR2 for everything else, then stick with it throughout your whole database.</p>
]]></content:encoded>
			<wfw:commentRss>http://technologydribble.info/2009/08/17/oracle-varchar21-vs-char1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

