<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" -->
<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/"
	>

<channel>
	<title>Java Blog - Java, J2EE, SOA, Spring and Hibernate &#187; Database</title>
	<link>http://javablog.info</link>
	<description></description>
	<pubDate>Thu, 17 Apr 2008 00:24:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<item>
		<title>Oracle/PLSQL: Sequences (Autonumber)</title>
		<link>http://javablog.info/2007/08/01/oracleplsql-sequences-autonumber/</link>
		<comments>http://javablog.info/2007/08/01/oracleplsql-sequences-autonumber/#comments</comments>
		<pubDate>Wed, 01 Aug 2007 21:01:06 +0000</pubDate>
		<dc:creator>Ravi Nallakukkala</dc:creator>
		
		<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://javablog.info/2007/08/01/oracleplsql-sequences-autonumber/</guid>
		<description><![CDATA[In Oracle, you can create an autonumber field by using sequences. A sequence is an object in Oracle that is used to generate a number sequence. This can be useful when you need to create a unique number to act as a primary key.
The syntax for a sequence is:
CREATE SEQUENCE sequence_name
MINVALUE  value
MAXVALUE value
START WITH value
INCREMENT [...]]]></description>
			<content:encoded><![CDATA[<p>In Oracle, you can create an autonumber field by using sequences. A sequence is an object in Oracle that is used to generate a number sequence. This can be useful when you need to create a unique number to act as a primary key.</p>
<p>The syntax for a sequence is:</p>
<p>CREATE SEQUENCE sequence_name<br />
MINVALUE  value<br />
MAXVALUE value<br />
START WITH value<br />
INCREMENT BY value<br />
CACHE value;</p>
<p>For example:<br />
CREATE SEQUENCE supplier_seq<br />
MINVALUE 1<br />
MAXVALUE 999999999999999999999999999<br />
START WITH 1<br />
INCREMENT BY 1<br />
CACHE 20;</p>
<p>Now that you&#8217;ve created a sequence object to simulate an autonumber field, we&#8217;ll cover how to retrieve a value from this sequence object.</p>
<p>To retrieve the next value in the sequence order, you need to use nextval.<br />
For example:supplier_seq.nextval</p>
]]></content:encoded>
			<wfw:commentRss>http://javablog.info/2007/08/01/oracleplsql-sequences-autonumber/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Limit &#038; offset functionality in mySql, PostgreSQL</title>
		<link>http://javablog.info/2007/07/05/limit-offset-functionality-in-mysql-postgresql/</link>
		<comments>http://javablog.info/2007/07/05/limit-offset-functionality-in-mysql-postgresql/#comments</comments>
		<pubDate>Thu, 05 Jul 2007 21:04:41 +0000</pubDate>
		<dc:creator>Ravi Nallakukkala</dc:creator>
		
		<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://javablog.info/2007/07/05/limit-offset-functionality-in-mysql-postgresql/</guid>
		<description><![CDATA[One of the excellent features provided by both my mySql &#38; Postgre is support for Limit and offset functionality.
Usage syntax
SELECT &#60;select_list&#62;
    FROM &#60;table_expression&#62;
    [LIMIT { number &#124; ALL }] [OFFSET number]
This is a useful feature when implementing pagination!
unfortunately this functionality is not currently being supported by Oracle!
]]></description>
			<content:encoded><![CDATA[<p>One of the excellent features provided by both my mySql &amp; Postgre is support for Limit and offset functionality.</p>
<p>Usage syntax</p>
<pre class="SYNOPSIS">SELECT &lt;<var class="REPLACEABLE">select_list&gt;</var>
    FROM &lt;<var class="REPLACEABLE">table_expression&gt;</var>
    [<span class="OPTIONAL">LIMIT { <var class="REPLACEABLE">number</var> | ALL }</span>] [<span class="OPTIONAL">OFFSET <var class="REPLACEABLE">number</var></span>]</pre>
<p>This is a useful feature when implementing pagination!<br />
unfortunately this functionality is not currently being supported by Oracle!</p>
]]></content:encoded>
			<wfw:commentRss>http://javablog.info/2007/07/05/limit-offset-functionality-in-mysql-postgresql/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
