<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Oracle&#8217;s Auto Incrementing with Sequences</title>
	<atom:link href="http://borkweb.com/story/oracles-auto-incrementing-with-sequences/feed" rel="self" type="application/rss+xml" />
	<link>http://borkweb.com/story/oracles-auto-incrementing-with-sequences</link>
	<description>Some People Are Squirrel Handed.</description>
	<lastBuildDate>Thu, 12 Jan 2012 15:56:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Bastich</title>
		<link>http://borkweb.com/story/oracles-auto-incrementing-with-sequences/comment-page-1#comment-43678</link>
		<dc:creator>Bastich</dc:creator>
		<pubDate>Tue, 13 Apr 2010 16:56:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.borkweb.com/story/oracles-auto-incrementing-with-sequences#comment-43678</guid>
		<description>Is there a simple example on how to use SEQUENCES in Oracle? I&#039;m a complete newbie - and would like the syntax basics of how to query SEQUENCES.

Using &quot;select  MAXVALUE from some_sequence_table&quot; is throwing
&#039;ORA-02201: sequence not allowed here&#039; error.</description>
		<content:encoded><![CDATA[<p>Is there a simple example on how to use SEQUENCES in Oracle? I&#8217;m a complete newbie &#8211; and would like the syntax basics of how to query SEQUENCES.</p>
<p>Using &#8220;select  MAXVALUE from some_sequence_table&#8221; is throwing<br />
&#8216;ORA-02201: sequence not allowed here&#8217; error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matheus</title>
		<link>http://borkweb.com/story/oracles-auto-incrementing-with-sequences/comment-page-1#comment-43535</link>
		<dc:creator>Matheus</dc:creator>
		<pubDate>Wed, 17 Mar 2010 20:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.borkweb.com/story/oracles-auto-incrementing-with-sequences#comment-43535</guid>
		<description>Oracle sequences are indeed superior to MSSQL Server IDENTITY method. But IMHO Oracle lacks a way to bind a sequence to a row, just as SERIAL data type wraps it all on PostgreSQL. When you CREATE TABLE SOME_TABLE (ID SERIAL), PostgreSQL internally gives you a sequence and beautifully sets its NEXTVAL to the ID column.</description>
		<content:encoded><![CDATA[<p>Oracle sequences are indeed superior to MSSQL Server IDENTITY method. But IMHO Oracle lacks a way to bind a sequence to a row, just as SERIAL data type wraps it all on PostgreSQL. When you CREATE TABLE SOME_TABLE (ID SERIAL), PostgreSQL internally gives you a sequence and beautifully sets its NEXTVAL to the ID column.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dnm</title>
		<link>http://borkweb.com/story/oracles-auto-incrementing-with-sequences/comment-page-1#comment-43001</link>
		<dc:creator>dnm</dc:creator>
		<pubDate>Tue, 10 Nov 2009 15:19:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.borkweb.com/story/oracles-auto-incrementing-with-sequences#comment-43001</guid>
		<description>The downside to mysql, of course, is that it&#039;s a steaming pile of crap.</description>
		<content:encoded><![CDATA[<p>The downside to mysql, of course, is that it&#8217;s a steaming pile of crap.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: suri</title>
		<link>http://borkweb.com/story/oracles-auto-incrementing-with-sequences/comment-page-1#comment-42994</link>
		<dc:creator>suri</dc:creator>
		<pubDate>Sun, 08 Nov 2009 08:14:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.borkweb.com/story/oracles-auto-incrementing-with-sequences#comment-42994</guid>
		<description>As i faced one production issue in our environment, basically we created sequence number to generate the no in sequence but unfortunately we faced dupicate of sequence number,that means the sequence number has created duplicate .so pls share the view why the same sequence number got generated .

For ex

CREATE SEQUENCE supplier_seq
    MINVALUE 1
    MAXVALUE 999999999999999999999999999
    START WITH 1
    INCREMENT BY 1
    CACHE 20;</description>
		<content:encoded><![CDATA[<p>As i faced one production issue in our environment, basically we created sequence number to generate the no in sequence but unfortunately we faced dupicate of sequence number,that means the sequence number has created duplicate .so pls share the view why the same sequence number got generated .</p>
<p>For ex</p>
<p>CREATE SEQUENCE supplier_seq<br />
    MINVALUE 1<br />
    MAXVALUE 999999999999999999999999999<br />
    START WITH 1<br />
    INCREMENT BY 1<br />
    CACHE 20;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarma K.M</title>
		<link>http://borkweb.com/story/oracles-auto-incrementing-with-sequences/comment-page-1#comment-42697</link>
		<dc:creator>Sarma K.M</dc:creator>
		<pubDate>Sun, 20 Sep 2009 16:06:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.borkweb.com/story/oracles-auto-incrementing-with-sequences#comment-42697</guid>
		<description>what happens to the incrementor if i just run this query

select sequnce.next_val from dual;</description>
		<content:encoded><![CDATA[<p>what happens to the incrementor if i just run this query</p>
<p>select sequnce.next_val from dual;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajiv lodha</title>
		<link>http://borkweb.com/story/oracles-auto-incrementing-with-sequences/comment-page-1#comment-42634</link>
		<dc:creator>rajiv lodha</dc:creator>
		<pubDate>Sun, 13 Sep 2009 19:59:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.borkweb.com/story/oracles-auto-incrementing-with-sequences#comment-42634</guid>
		<description>how can i create a sequence which will increment in a random fashion?

create sequence semSeq
start with 156 
increment by dbms_random.value(1,1000) num
nomaxvalue;</description>
		<content:encoded><![CDATA[<p>how can i create a sequence which will increment in a random fashion?</p>
<p>create sequence semSeq<br />
start with 156<br />
increment by dbms_random.value(1,1000) num<br />
nomaxvalue;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oracle 10g: Using The Returning Clause With ADOdb : BorkWeb</title>
		<link>http://borkweb.com/story/oracles-auto-incrementing-with-sequences/comment-page-1#comment-41452</link>
		<dc:creator>Oracle 10g: Using The Returning Clause With ADOdb : BorkWeb</dc:creator>
		<pubDate>Tue, 21 Oct 2008 13:27:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.borkweb.com/story/oracles-auto-incrementing-with-sequences#comment-41452</guid>
		<description>[...] when you are inserting into a table with auto incrementing values (via a sequence) you have always been able to grab the last value with a simple SELECT statement (line 22): PLAIN [...]</description>
		<content:encoded><![CDATA[<p>[...] when you are inserting into a table with auto incrementing values (via a sequence) you have always been able to grab the last value with a simple SELECT statement (line 22): PLAIN [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh</title>
		<link>http://borkweb.com/story/oracles-auto-incrementing-with-sequences/comment-page-1#comment-41316</link>
		<dc:creator>Rajesh</dc:creator>
		<pubDate>Sat, 06 Sep 2008 16:07:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.borkweb.com/story/oracles-auto-incrementing-with-sequences#comment-41316</guid>
		<description>Its good,
i have a small doubt, 
how to find the name of column where sequence is created?

Plz, forward to to my mail id rajesh227@gmail.com
tx, in advance</description>
		<content:encoded><![CDATA[<p>Its good,<br />
i have a small doubt,<br />
how to find the name of column where sequence is created?</p>
<p>Plz, forward to to my mail id <a href="mailto:rajesh227@gmail.com">rajesh227@gmail.com</a><br />
tx, in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oldDog</title>
		<link>http://borkweb.com/story/oracles-auto-incrementing-with-sequences/comment-page-1#comment-37536</link>
		<dc:creator>oldDog</dc:creator>
		<pubDate>Mon, 21 Apr 2008 02:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.borkweb.com/story/oracles-auto-incrementing-with-sequences#comment-37536</guid>
		<description>seqName.nextval and seqName.currval and their behavior have several advantages over AUTONUMBER or IDENTITY methods. For example, knowing the PK value to be used on INSERT before performing it saves on the cost of having to ask after the fact.

If you measure 1m executions of last_insert_id() after INSERT to a table, compared to use of seqName.nextval and seqName.currval and their costs, you may find a performance advantage for SEQUENCE. As for the practical matter of having to ask &quot;what value did we get&quot;, seqName.currval is there if you need it (until your next NEXTVAL!)</description>
		<content:encoded><![CDATA[<p>seqName.nextval and seqName.currval and their behavior have several advantages over AUTONUMBER or IDENTITY methods. For example, knowing the PK value to be used on INSERT before performing it saves on the cost of having to ask after the fact.</p>
<p>If you measure 1m executions of last_insert_id() after INSERT to a table, compared to use of seqName.nextval and seqName.currval and their costs, you may find a performance advantage for SEQUENCE. As for the practical matter of having to ask &#8220;what value did we get&#8221;, seqName.currval is there if you need it (until your next NEXTVAL!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joc</title>
		<link>http://borkweb.com/story/oracles-auto-incrementing-with-sequences/comment-page-1#comment-36949</link>
		<dc:creator>Joc</dc:creator>
		<pubDate>Wed, 20 Feb 2008 16:54:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.borkweb.com/story/oracles-auto-incrementing-with-sequences#comment-36949</guid>
		<description>While your comments about MySQL being a much simpler way of doing things is true, there is a lot more flexibility with the Oracle approach. For example, if you wished to have an incrementing value that is shared by multiple tables but guaranteed unique across them all.</description>
		<content:encoded><![CDATA[<p>While your comments about MySQL being a much simpler way of doing things is true, there is a lot more flexibility with the Oracle approach. For example, if you wished to have an incrementing value that is shared by multiple tables but guaranteed unique across them all.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

