<?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>SQL Tutorial - Learn SQL Online</title>
	<atom:link href="http://www.sql-statements.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sql-statements.com</link>
	<description>MS SQL Server, Oracle, mySQL, ...</description>
	<lastBuildDate>Wed, 28 Dec 2011 03:34:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>SQL DEFAULT Constraint</title>
		<link>http://www.sql-statements.com/sql-default-constraint.html</link>
		<comments>http://www.sql-statements.com/sql-default-constraint.html#comments</comments>
		<pubDate>Wed, 28 Dec 2011 03:31:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Table Manipulation]]></category>

		<guid isPermaLink="false">http://www.sql-statements.com/?p=818</guid>
		<description><![CDATA[The SQL DEFAULT Constraint is used to set a default value to a column when we insert a new row to a table without providing a value for the column. We can use the DEFAULT keyword to specify a default value for a column. CREATE TABLE Users ( UserID int NOT NULL, FirstName varchar(100) NOT [...]]]></description>
			<content:encoded><![CDATA[<p>The SQL DEFAULT Constraint is used to set a default value to a column when we insert a new row to a table without providing a value for the column.</p>
<p>We can use the DEFAULT keyword to specify a default value for a column.</p>
<p><span id="more-818"></span></p>
<pre name="code" class="sql:nogutter">
CREATE TABLE Users
(
    UserID int NOT NULL,
    FirstName varchar(100) NOT NULL,
    LastName varchar(100) NOT NULL,
    Email varchar(200),
    Phone varchar(50),
    City varchar(50) DEFAULT 'Toronto',
    CreatedDate Date DEFAULT Getdate()
)
</pre>
<p>The above script will create a table named &#8220;Users&#8221;, the default value of column &#8220;City&#8221; will be &#8220;Toronto&#8221; and the default value of column &#8220;CreatedDate&#8221; will be the date when the new row inserted.</p>
<p>When we execute the following script:</p>
<pre name="code" class="sql:nogutter">
INSERT INTO Users(UserID, FirstName, LastName, Email, Phone)
VALUES (1, 'Tom', 'Smith', 'tom.smith@sql-statements.com', '1-000-0000')
</pre>
<p>We didn&#8217;t specify the value for the cloumn City and CreatedDate, so the default value will be set for them:</p>
<table class="example" border="1" cellspacing="0" cellpadding="0" width="100%">
<tr>
<th>UserID </th>
<th>FirstName </th>
<th>LastName</th>
<th>Email</th>
<th>Phone</th>
<th>City</th>
<th>CreatedDate</th>
</tr>
<tr>
<td>1</td>
<td>Tom</td>
<td>Smith</td>
<td>tom.smith@sql-statements.com</td>
<td>1-000-0000</td>
<td>Toronto</td>
<td>2011-12-27</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.sql-statements.com/sql-default-constraint.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL NOT NULL Constraint</title>
		<link>http://www.sql-statements.com/sql-not-null-constraint.html</link>
		<comments>http://www.sql-statements.com/sql-not-null-constraint.html#comments</comments>
		<pubDate>Wed, 21 Dec 2011 02:26:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Table Manipulation]]></category>

		<guid isPermaLink="false">http://www.sql-statements.com/?p=815</guid>
		<description><![CDATA[By default, a column can hold NULL value. The SQL NOT NULL Constraint is used to force a column cannot accept a NULL value, and must hold a value. CREATE TABLE Users ( UserID int NOT NULL, FirstName varchar(100) NOT NULL, LastName varchar(100) NOT NULL, Email varchar(200), Phone varchar(50), Birthday Date ) The above script [...]]]></description>
			<content:encoded><![CDATA[<p>By default, a column can hold NULL value. The SQL NOT NULL Constraint is used to force a column cannot accept a NULL value, and must hold a value.</p>
<p><span id="more-815"></span></p>
<pre name="code" class="sql:nogutter">
CREATE TABLE Users
(
    UserID int NOT NULL,
    FirstName varchar(100) NOT NULL,
    LastName varchar(100) NOT NULL,
    Email varchar(200),
    Phone varchar(50),
    Birthday Date
)
</pre>
<p>The above script will create a table named &#8220;Users&#8221;, the column UserID, FirstName and LastName cannot hold NULL value. If you try to insert a row without specify the UserID, FirstName or LastName:</p>
<pre name="code" class="sql:nogutter">
INSERT INTO Users (UserID, FirstName, Email, Phone, Birthday)
VALUES (1, 'Tom', 'test@test.com', '999-9999', '1992-12-12')
</pre>
<p>You would get an error, because the LastName is not specified and would be set  a NULL value.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sql-statements.com/sql-not-null-constraint.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Create Table</title>
		<link>http://www.sql-statements.com/sql-create-table.html</link>
		<comments>http://www.sql-statements.com/sql-create-table.html#comments</comments>
		<pubDate>Sat, 17 Dec 2011 16:38:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Table Manipulation]]></category>

		<guid isPermaLink="false">http://www.sql-statements.com/?p=809</guid>
		<description><![CDATA[SQL table is a place where the SQL database stores the data. It has columns and rows. We can use CREATE TABLE statement to create a table in a database. SQL CREATE TABLE Syntax CREATE TABLE table_name ( column1 data_type [null/not null], column2 data_type [null/not null], column3 data_type [null/not null], .... ) data_type is required. [...]]]></description>
			<content:encoded><![CDATA[<p>SQL table is a place where the SQL database stores the data. It has columns and rows. We can use CREATE TABLE statement to create a table in a database.</p>
<p><span id="more-809"></span></p>
<h3>SQL CREATE TABLE Syntax</h3>
<pre name="code" class="sql:nogutter">
CREATE TABLE table_name
(
    column1 data_type [null/not null],
    column2 data_type [null/not null],
    column3 data_type [null/not null],
    ....
)
</pre>
<p>data_type is required.<br />
null/not null is optional, if it is not specified, the default value is null.</p>
<h3>SQL CREATE TABLE Example</h3>
<p>We want to create a table Users which will store the user&#8217;s information: user&#8217;s ID, first name, last name, E-mail address, phone number, birthday. </p>
<p>We can use the following script to create a table &#8220;Users&#8221; in database:</p>
<pre name="code" class="sql:nogutter">
CREATE TABLE Users
(
    UserID int NOT NULL,
    FirstName varchar(100) NOT NULL,
    LastName varchar(100) NOT NULL,
    Email varchar(200),
    Phone varchar(50),
    Birthday Date
)
</pre>
<p>The script will create an empty table which has 6 columns: UserID, FirstName, LastName, Email, Phone and Birthday.<br />
The UserID, FirstName, LastName will not accept NULL value, when we insert or update a row in database, we must set the values for them. Email, Phone and Birthday can accept NULL value.</p>
<p>The new created empty table will look like:</p>
<table class="example" border="1" cellspacing="0" cellpadding="0" width="100%">
<tr>
<th>UserID </th>
<th>FirstName </th>
<th>LastName</th>
<th>Email</th>
<th>Phone</th>
<th>Birthday </th>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.sql-statements.com/sql-create-table.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ORACLE TO_CHAR</title>
		<link>http://www.sql-statements.com/oracle-to_char.html</link>
		<comments>http://www.sql-statements.com/oracle-to_char.html#comments</comments>
		<pubDate>Wed, 14 Dec 2011 02:47:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Functions]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.sql-statements.com/?p=805</guid>
		<description><![CDATA[Oracle To_char() is an SQL function which will convert a number or date to string. ORACLE TO_CHAR Function Syntax The Oracle to_date() function&#8217;s syntax could be one of the following: to_char(value) to_char(value, format) to_char(value, format, nls_language) value: number or date, which will be converted to string. format: the format we will use to convert a [...]]]></description>
			<content:encoded><![CDATA[<p>Oracle To_char() is an SQL function which will convert a number or date to string. </p>
<p><span id="more-805"></span></p>
<h3>ORACLE TO_CHAR Function Syntax</h3>
<p>The Oracle to_date() function&#8217;s syntax could be one of the following:</p>
<pre name="code" class="sql:nogutter">
to_char(value)
</pre>
<pre name="code" class="sql:nogutter">
to_char(value, format)
</pre>
<pre name="code" class="sql:nogutter">
to_char(value, format, nls_language)
</pre>
<p>value: number or date, which will be converted to string.<br />
format: the format we will use to convert a number or date to string.</p>
<p>The format mask parameters for date expression are listed as following: (They could be used in combinations)</p>
<table class="example" border="1" cellspacing="0" cellpadding="0" width="100%">
<tr>
<th>Parameter</th>
<th>Explanation</th>
</tr>
<tr>
<td>YEAR</td>
<td>Year in characters</td>
</tr>
<tr>
<td>YYYY</td>
<td>4-digit year</td>
</tr>
<tr>
<td>YY</td>
<td>2-digit year</td>
</tr>
<tr>
<td>IYYY</td>
<td>4-digit ISO year</td>
</tr>
<tr>
<td>IY</td>
<td>2-digit ISO year</td>
</tr>
<tr>
<td>RRRR</td>
<td>Take a 2-digit year as input and a 4-digit year as output.<br />
0-49 will return a 20xx year.<br />
50-99 will return a 19xx year.</td>
</tr>
<tr>
<td>Q</td>
<td>Quarter (1, 2, 3, 4)</td>
</tr>
<tr>
<td>MM</td>
<td>Month (01, 02, 03, &#8230; 12)</td>
</tr>
<tr>
<td>MON</td>
<td>Abbreviated name of month (Jan, Feb, Mar, &#8230; Dec)</td>
</tr>
<tr>
<td>MONTH</td>
<td>Name of month (January, February, March, &#8230; December)</td>
</tr>
<tr>
<td>RM</td>
<td>Roman number of month (I, II, &#8230; XII)</td>
</tr>
<tr>
<td>WW</td>
<td>Week number (1 &#8211; 53)</td>
</tr>
<tr>
<td>W</td>
<td>Week number of the month (1 &#8211; 5)</td>
</tr>
<tr>
<td>IW</td>
<td>Week number of the ISO year (1 &#8211; 52 or 1 &#8211; 53)</td>
</tr>
<tr>
<td>D</td>
<td>Day of week (1 &#8211; 7)</td>
</tr>
<tr>
<td>Day</td>
<td>Day of week in characters (Monday, Tuesday, &#8230; Sunday)</td>
</tr>
<tr>
<td>DD</td>
<td>Day of month (1 &#8211; 31)</td>
</tr>
<tr>
<td>DDD</td>
<td>Day of year (1 &#8211; 366)</td>
</tr>
<tr>
<td>DY</td>
<td>Day of week in short characters (Mon, Tue, &#8230; Sun)</td>
</tr>
<tr>
<td>J</td>
<td>Julian day; the number of days since January 1, 4712 BC.</td>
</tr>
<tr>
<td>HH, HH12</td>
<td>Hour number of the day (1 &#8211; 12)</td>
</tr>
<tr>
<td>HH24</td>
<td>Hour number of the day with 24 hour format (0 &#8211; 23)</td>
</tr>
<tr>
<td>MI</td>
<td>Minute number (0 &#8211; 59)</td>
</tr>
<tr>
<td>SS</td>
<td>Second number (0 &#8211; 59)</td>
</tr>
<tr>
<td>SSSSS</td>
<td>Number of seconds this day(0 &#8211; 86399)</td>
</tr>
<tr>
<td>FF</td>
<td>Fractional seconds.</td>
</tr>
<tr>
<td>AM, PM</td>
<td>AM or PM</td>
</tr>
<tr>
<td>AD, A.D</td>
<td>AD</td>
</tr>
<tr>
<td>BC, B.C</td>
<td>BC</td>
</tr>
<tr>
<td>TZD</td>
<td>Daylight savings information. e.g, &#8216;PST&#8217;</td>
</tr>
<tr>
<td>TZH</td>
<td>Time Zone Hour</td>
</tr>
<tr>
<td>TZM</td>
<td>Time Zone Minute</td>
</tr>
<tr>
<td>TZR</td>
<td>Time Zone Region</td>
</tr>
</table>
<h3>ORACLE TO_CHAR Function  Example</h3>
<p><strong><span style="color:blue">Numbers Example</span></strong></p>
<pre name="code" class="sql:nogutter">
SELECT to_char(18.34) FROM dual
-- return a string value: 18.34

SELECT to_char(18.34, '99.9') FROM dual
-- return a string value: 18.3

SELECT to_char(2118.34, '9,999.9') FROM dual
-- return a string value: 2,118.3

SELECT to_char(118, '0009') FROM dual
-- return a string value: 0118
</pre>
<p><strong><span style="color:blue">Dates Example</span></strong></p>
<pre name="code" class="sql:nogutter">
SELECT to_char(sysdate) FROM dual
-- return a string value: 14-DEC-11

SELECT to_char(sysdate, 'mm/dd/yyyy') FROM dual
-- return a string value: 12/14/2011

SELECT to_char(sysdate, 'Mon mm, yy') FROM dual
-- return a string value: Dec 12, 11

SELECT to_char(sysdate, 'Mon mm, yyyy hh:mi am') FROM dual
-- return a string value: Dec 12, 2011 02:48 AM
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sql-statements.com/oracle-to_char.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL REVERSE</title>
		<link>http://www.sql-statements.com/sql-reverse.html</link>
		<comments>http://www.sql-statements.com/sql-reverse.html#comments</comments>
		<pubDate>Sun, 11 Dec 2011 02:26:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Functions]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[String Function]]></category>

		<guid isPermaLink="false">http://www.sql-statements.com/?p=802</guid>
		<description><![CDATA[SQL REVERSE function is used to return reverse of a string. It&#8217;s supported by MS SQL Server, MySQL. Oracle supports it too, but maybe not in the documents. SQL REVERSE function Syntax REVERSE(string-expression) SQL REVERSE function Example SELECT REVERSE('SQL Tutorial') -- The result will be: lairotuT LQS SELECT REVERSE('Monday') -- The result will be: yadnoM]]></description>
			<content:encoded><![CDATA[<p>SQL REVERSE function is used to return reverse of a string. It&#8217;s supported by MS SQL Server, MySQL. Oracle supports it too, but maybe not in the documents.</p>
<p><span id="more-802"></span></p>
<h3>SQL REVERSE function Syntax</h3>
<pre name="code" class="sql:nogutter">
REVERSE(string-expression)
</pre>
<h3>SQL REVERSE function Example</h3>
<pre name="code" class="sql:nogutter">
SELECT REVERSE('SQL Tutorial')
-- The result will be: lairotuT LQS
</pre>
<pre name="code" class="sql:nogutter">
SELECT REVERSE('Monday')
-- The result will be: yadnoM
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sql-statements.com/sql-reverse.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Difference Among char, nchar, varchar, nvarchar in MS SQL Server</title>
		<link>http://www.sql-statements.com/the-difference-among-char-nchar-varchar-nvarchar-in-ms-sql-server.html</link>
		<comments>http://www.sql-statements.com/the-difference-among-char-nchar-varchar-nvarchar-in-ms-sql-server.html#comments</comments>
		<pubDate>Wed, 07 Dec 2011 02:43:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Advanced]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.sql-statements.com/?p=797</guid>
		<description><![CDATA[In MS SQL Server, there are some data types of string, like char, nchar, varchar, nvarchar. What&#8217;s the difference among them? Char is fixed length. Even if you don&#8217;t use up all the space, it will still reserve the un-used space. Varchar is flexible, it will not reserve the un-used space. For example, if we [...]]]></description>
			<content:encoded><![CDATA[<p>In MS SQL Server, there are some data types of string, like char, nchar, varchar, nvarchar. What&#8217;s the difference among them?<br />
<span id="more-797"></span><br />
Char is fixed length. Even if you don&#8217;t use up all the space, it will still reserve the un-used space.<br />
Varchar is flexible, it will not reserve the un-used space.</p>
<p>For example, if we set the length to 10: char(10), varchar(10), and we set the value to &#8216;apple&#8217;:<br />
The stored data for Char(10) is: &#8216;apple&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8217;.<br />
The stored data for Varchar(10) is: &#8216;apple&#8217;.</p>
<p>Char and Varchar cannot store <strong>Unicode</strong> characters.<br />
&#8216;n&#8217; means it can store Unicode characters such as: nchar and nvarchar.</p>
<p>You can have a quick reference:</p>
<table class="example" border="1" cellspacing="0" cellpadding="0" width="100%">
<tr>
<th>Data Type</th>
<th>Can store unicode</th>
<th>Fixed-length</th>
</tr>
<tr>
<td>char</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td>nchar</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>varchar</td>
<td>No</td>
<td>No</td>
</tr>
<tr>
<td>nvarchar</td>
<td>Yes</td>
<td>No</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.sql-statements.com/the-difference-among-char-nchar-varchar-nvarchar-in-ms-sql-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL LEFT Function</title>
		<link>http://www.sql-statements.com/sql-left-function.html</link>
		<comments>http://www.sql-statements.com/sql-left-function.html#comments</comments>
		<pubDate>Sun, 04 Dec 2011 23:03:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Functions]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[String Function]]></category>

		<guid isPermaLink="false">http://www.sql-statements.com/?p=794</guid>
		<description><![CDATA[SQL LEFT() function is used to get left part of a string with the length of specified number. It is supported by MySQL, MS SQL Server, Access, but not by Oracle. SQL LEFT Function Syntax LEFT(str, len) Note: 1, If str is NULL, the return value will be NULL. 2. If len is greater than [...]]]></description>
			<content:encoded><![CDATA[<p>SQL LEFT() function is used to get left part of a string with the length of specified number. It is supported by MySQL, MS SQL Server, Access, but not by Oracle.</p>
<p><span id="more-794"></span></p>
<h3>SQL LEFT Function Syntax</h3>
<pre name="code" class="sql:nogutter">
LEFT(str, len)
</pre>
<p><strong>Note:</strong><br />
1, If str is NULL, the return value will be NULL.<br />
2. If len is greater than the length of str, the return value will be the entire str.<br />
3. If len is 0, the return value will be empty string.</p>
<h3>SQL LEFT Function Example</h3>
<pre name="code" class="sql:nogutter">
SELECT LEFT('SQL Tutorial',3)
-- The return value will be: SQL
</pre>
<pre name="code" class="sql:nogutter">
SELECT LEFT('SQL Tutorial',0)
-- The return value will be: Empty string
</pre>
<pre name="code" class="sql:nogutter">
SELECT LEFT(NULL,3)
-- The return value will be NULL
</pre>
<pre name="code" class="sql:nogutter">
SELECT LEFT('David',20)
-- The return value will be: David
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sql-statements.com/sql-left-function.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL SPACE</title>
		<link>http://www.sql-statements.com/sql-space.html</link>
		<comments>http://www.sql-statements.com/sql-space.html#comments</comments>
		<pubDate>Fri, 02 Dec 2011 01:01:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Functions]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[String Function]]></category>

		<guid isPermaLink="false">http://www.sql-statements.com/?p=791</guid>
		<description><![CDATA[SQL SPACE() function is used to return space characters, the number of the characters is indicated by the interger parameter. It is supported by MySQL and MS SQL Server, but not Oracle. SQL SPACE Function Syntax SPACE(int) int: the number of the spaces. SQL SPACE Function Example SELECT SPACE(9) -- Will return 9 space characters. [...]]]></description>
			<content:encoded><![CDATA[<p>SQL SPACE() function is used to return space characters, the number of the characters is indicated by the interger parameter. It is supported by MySQL and MS SQL Server, but not Oracle.</p>
<p><span id="more-791"></span></p>
<h3>SQL SPACE Function Syntax</h3>
<pre name="code" class="sql:nogutter">
SPACE(int)
</pre>
<p>int: the number of the spaces.</p>
<h3>SQL SPACE Function Example</h3>
<pre name="code" class="sql:nogutter">
SELECT SPACE(9)
-- Will return 9 space characters.
</pre>
<pre name="code" class="sql:nogutter">
SELECT 'Hello' + SPACE(3) + 'World!'
-- Will return 'Hello   World!'
-- 'Hello', then 3 spaces, then 'World!'
</pre>
<pre name="code" class="sql:nogutter">
SELECT 'Hello' + SPACE(0) + 'World!'
-- Will return 'HelloWorld!'
-- 'Hello', no space, then 'World!'
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sql-statements.com/sql-space.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL CHAR</title>
		<link>http://www.sql-statements.com/sql-char.html</link>
		<comments>http://www.sql-statements.com/sql-char.html#comments</comments>
		<pubDate>Wed, 30 Nov 2011 01:30:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Functions]]></category>

		<guid isPermaLink="false">http://www.sql-statements.com/?p=789</guid>
		<description><![CDATA[SQL CHAR function is used to return a character of an int ASCII code. SQL CHAR Function Syntax CHAR (int) SQL CHAR Function Example SELECT CHAR(83) -- Return: S SELECT CHAR(81) -- Return: Q SELECT CHAR(76) -- Return: L SELECT CHAR(45) -- Return: - SELECT CHAR(100) -- Return: d]]></description>
			<content:encoded><![CDATA[<p>SQL CHAR function is used to return a character of an int ASCII code.</p>
<p><span id="more-789"></span></p>
<h3>SQL CHAR Function Syntax</h3>
<pre name="code" class="sql:nogutter">
CHAR (int)
</pre>
<h3>SQL CHAR Function Example</h3>
<pre name="code" class="sql:nogutter">
SELECT CHAR(83) -- Return: S

SELECT CHAR(81) -- Return: Q

SELECT CHAR(76) -- Return: L

SELECT CHAR(45) -- Return: -

SELECT CHAR(100) -- Return: d
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sql-statements.com/sql-char.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Hosting</title>
		<link>http://www.sql-statements.com/sql-hosting.html</link>
		<comments>http://www.sql-statements.com/sql-hosting.html#comments</comments>
		<pubDate>Mon, 28 Nov 2011 02:27:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Advanced]]></category>

		<guid isPermaLink="false">http://www.sql-statements.com/?p=784</guid>
		<description><![CDATA[SQL hosting is the hosting that provides the SQL database services. It has many SQL databases in the SQL hosting market, and the most popular are MySQL, MS SQL Server, MS Access and Oracle. Who Needs SQL Hosting Basically, if you want to store and retrieve data from SQL databases, you need SQL hosting. It [...]]]></description>
			<content:encoded><![CDATA[<p>SQL hosting is the hosting that provides the SQL database services. It has many SQL databases in the SQL hosting market, and the most popular are MySQL, MS SQL Server, MS Access and Oracle.<br />
<span id="more-784"></span></p>
<h3>Who Needs SQL Hosting</h3>
<p>Basically, if you want to store and retrieve data from SQL databases, you need SQL hosting.</p>
<p>It has some advantages by using SQL hosting:</p>
<ul>
<li>Your web application will be robust and scalable.</li>
<li>Your web page content will be more searchable in database.</li>
<li>It&#8217;ll be easier to maintain the web page content.</li>
<li>You can easily change the web application&#8217;s layout without touching the data.</li>
<li>You can easily use the same data all through your applications.</li>
</ul>
<h3>SQL Hosting Comparison</h3>
<p>It has different SQL databases in the hosting market, you may need to choose one according to your requirements. Following is the basic comparison for your quick reference.</p>
<table class="example" border="1" cellspacing="0" cellpadding="0" width="100%">
<tr>
<th>SQL Database</th>
<th>Windows</th>
<th>Unix/Linux</th>
<th>Expense</th>
<th>Note</th>
</tr>
<tr>
<td>MySQL</td>
<td>Yes</td>
<td>Yes</td>
<td>Free</td>
<td></td>
</tr>
<tr>
<td>SQL Server</td>
<td>Yes</td>
<td>No</td>
<td>Not Free</td>
<td></td>
</tr>
<tr>
<td>MS Access</td>
<td>Yes</td>
<td>No</td>
<td>Not Free</td>
<td>for small websites</td>
</tr>
<tr>
<td>Oracle</td>
<td>Yes</td>
<td>Yes</td>
<td>Not Free</td>
<td></td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.sql-statements.com/sql-hosting.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

