<?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>Nisi's work blog &#187; variables</title>
	<atom:link href="http://wiki.nisi.ro/tag/variables/feed/" rel="self" type="application/rss+xml" />
	<link>http://wiki.nisi.ro</link>
	<description>Nisi's work blog - programing tips</description>
	<lastBuildDate>Mon, 21 Nov 2011 08:43:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>MySQL variables range</title>
		<link>http://wiki.nisi.ro/2008/04/mysql-variables-range/</link>
		<comments>http://wiki.nisi.ro/2008/04/mysql-variables-range/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 17:08:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[PHP & MySQL]]></category>
		<category><![CDATA[Website's]]></category>
		<category><![CDATA[blob]]></category>
		<category><![CDATA[flot]]></category>
		<category><![CDATA[int]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[range]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[varchar]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://wiki.nisi.ro/?p=18</guid>
		<description><![CDATA[TINYINT A very small integer The signed range is –128 to 127. The unsigned range is 0 to 255. SMALLINT A small integer The signed range is –32768 to 32767. The unsigned range is 0 to 65535 MEDIUMINT A medium-size integer The signed range is –8388608 to 8388607. The unsigned range is 0 to 16777215 [...]]]></description>
			<content:encoded><![CDATA[<p><br />
<strong>TINYINT</strong><br />
A very small integer<br />
The signed <span class="hilite3">range</span> is –128 to 127. The unsigned <span class="hilite3">range</span> is 0 to 255.</p>
<p><strong>SMALLINT</strong><br />
A small integer<br />
The signed <span class="hilite3">range</span> is –32768 to 32767. The unsigned <span class="hilite3">range</span> is 0 to 65535</p>
<p><strong>MEDIUMINT</strong><br />
A medium-size integer<br />
The signed <span class="hilite3">range</span> is –8388608 to 8388607. The unsigned <span class="hilite3">range</span> is 0 to 16777215</p>
<p><strong>INT</strong> or <strong>INTEGER</strong><br />
A normal-size integer<br />
The signed <span class="hilite3">range</span> is –2147483648 to 2147483647. The unsigned <span class="hilite3">range</span> is 0 to 4294967295</p>
<p><strong>BIGINT</strong><br />
A large integer<br />
The signed <span class="hilite3">range</span> is –9223372036854775808 to 9223372036854775807. The unsigned <span class="hilite3">range</span> is 0 to 18446744073709551615</p>
<p><strong>FLOAT</strong><br />
A small (single-precision) floating-point number. Cannot be unsigned<br />
Ranges are –3.402823466E+38 to –1.175494351E-38, 0 and 1.175494351E-38 to 3.402823466E+38. If the number of Decimals is not set or &lt;= 24 it is a single-precision floating point number</p>
<p><strong>DOUBLE</strong>,<br />
<strong>DOUBLE PRECISION</strong>,<br />
<strong>REAL</strong><br />
A normal-size (double-precision) floating-point number. Cannot be unsigned<br />
Ranges are -1.7976931348623157E+308 to -2.2250738585072014E-308, 0 and 2.2250738585072014E-308 to 1.7976931348623157E+308. If the number of Decimals is not set or 25 &lt;= Decimals &lt;= 53 stands for a double-precision floating point number</p>
<p><strong>DECIMAL</strong>,<br />
<strong>NUMERIC</strong><br />
An unpacked floating-point number. Cannot be unsigned<br />
Behaves like a CHAR column: “unpacked” means the number is stored as a string, using one character for each digit of the value. The decimal point, and, for negative numbers, the ‘-‘ sign is not counted in Length. If Decimals is 0, values will have no decimal point or fractional part. The maximum <span class="hilite3">range</span> of DECIMAL values is the same as for DOUBLE, but the actual <span class="hilite3">range</span> for a given DECIMAL column may be constrained by the choice of Length and Decimals. If Decimals is left out it’s set to 0. If Length is left out it’s set to 10. Note that in <span class="hilite1">MySQL</span> 3.22 the Length includes the sign and the decimal point</p>
<p><strong>DATE</strong><br />
A date<br />
The supported <span class="hilite3">range</span> is ‘1000-01-01’ to ‘9999-12-31’. <span class="hilite1">MySQL</span> displays DATE values in ‘YYYY-MM-DD’ format</p>
<p><strong>DATETIME</strong><br />
A date and time combination<br />
The supported <span class="hilite3">range</span> is ‘1000-01-01 00:00:00’ to ‘9999-12-31 23:59:59’. <span class="hilite1">MySQL</span> displays DATETIME values in ‘YYYY-MM-DD HH:MM:SS’ format</p>
<p><strong>TIMESTAMP</strong><br />
A timestamp<br />
The <span class="hilite3">range</span> is ‘1970-01-01 00:00:00’ to sometime in the year 2037. <span class="hilite1">MySQL</span> displays TIMESTAMP values in YYYYMMDDHHMMSS, YYMMDDHHMMSS, YYYYMMDD or YYMMDD format, depending on whether M is 14 (or missing), 12, 8 or 6, but allows you to assign values to TIMESTAMP columns using either strings or numbers. A TIMESTAMP column is useful for recording the date and time of an INSERT or UPDATE operation because it is automatically set to the date and time of the most recent operation if you don’t give it a value yourself</p>
<p><strong>TIME</strong><br />
A time<br />
The <span class="hilite3">range</span> is ‘-838:59:59’ to ‘838:59:59’. <span class="hilite1">MySQL</span> displays TIME values in ‘HH:MM:SS’ format, but allows you to assign values to TIME columns using either strings or numbers</p>
<p><strong>YEAR</strong><br />
A year in 2- or 4- digit formats (default is 4-digit)<br />
The allowable values are 1901 to 2155, and 0000 in the 4 year format and 1970-2069 if you use the 2 digit format (70-69). <span class="hilite1">MySQL</span> displays YEAR values in YYYY format, but allows you to assign values to YEAR columns using either strings or numbers. (The YEAR type is new in <span class="hilite1">MySQL</span> 3.22.)</p>
<p><strong>CHAR</strong><br />
A fixed-length string that is always right-padded with spaces to the specified length when stored<br />
The <span class="hilite3">range</span> of Length is 1 to 255 characters. Trailing spaces are removed when the value is retrieved. CHAR values are sorted and compared in case-insensitive fashion according to the default character set unless the BINARY keyword is given</p>
<p><span class="hilite2"><strong>VARCHAR</strong></span><br />
A variable-length string. Note: Trailing spaces are removed when the value is stored (this differs from the ANSI SQL specification)<br />
The <span class="hilite3">range</span> of Length is 1 to 255 characters. <span class="hilite2">VARCHAR</span> values are sorted and compared in case-insensitive fashion unless the BINARY keyword is given</p>
<p><strong>TINYBLOB</strong>,<br />
<strong>TINYTEXT</strong></p>
<p>A <strong>BLOB</strong> or <strong>TEXT</strong> column with a maximum length of 255 (2^8 &#8211; 1) characters</p>
<p><strong>BLOB</strong>,<br />
<strong>TEXT </strong></p>
<p>A BLOB or TEXT column with a maximum length of 65535 (2^16 &#8211; 1) characters</p>
<p><strong>MEDIUMBLOB</strong>,<br />
<strong>MEDIUMTEXT</strong></p>
<p>A BLOB or TEXT column with a maximum length of 16777215 (2^24 &#8211; 1) characters</p>
<p><strong>LONGBLOB</strong>,<br />
<strong>LONGTEXT</strong></p>
<p>A <strong>BLOB</strong> or <strong>TEXT</strong> column with a maximum length of 4294967295 (2^32 &#8211; 1) characters</p>
<p><strong>ENUM</strong><br />
An enumeration<br />
A string object that can have only one value, chosen from the list of values ‘value1’, ‘value2’, &#8230;, or NULL. An ENUM can have a maximum of 65535 distinct values.</p>
<p><strong>SET</strong><br />
A set<br />
A string object that can have zero or more values, each of which must be chosen from the list of values ‘value1’, ‘value2’, &#8230; A SET can have a maximum of 64 members </p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.nisi.ro/2008/04/mysql-variables-range/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

