<?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: Creating BETTER auto-increment columns in Oracle</title>
	<atom:link href="http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/</link>
	<description>this must be the place</description>
	<lastBuildDate>Fri, 27 Aug 2010 00:09:41 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Earl Ruby</title>
		<link>http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/comment-page-1/#comment-430</link>
		<dc:creator>Earl Ruby</dc:creator>
		<pubDate>Fri, 27 Aug 2010 00:09:41 +0000</pubDate>
		<guid isPermaLink="false">http://earlruby.org/?p=36#comment-430</guid>
		<description>Hawa: I don&#039;t use TOAD, but I&#039;d guess it wants the starting sequence value. Try entering &quot;1&quot; and see what happens.</description>
		<content:encoded><![CDATA[<p>Hawa: I don&#8217;t use TOAD, but I&#8217;d guess it wants the starting sequence value. Try entering &#8220;1&#8243; and see what happens.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Earl Ruby</title>
		<link>http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/comment-page-1/#comment-429</link>
		<dc:creator>Earl Ruby</dc:creator>
		<pubDate>Thu, 26 Aug 2010 23:58:54 +0000</pubDate>
		<guid isPermaLink="false">http://earlruby.org/?p=36#comment-429</guid>
		<description>Frank:  I was referring specifically to the typical MySQL auto_increment and Postgres &quot;SET DEFAULT NEXTVAL(&#039;some_sequence&#039;)&quot; usage, which is also the typical way that you implement an auto-increment sequence in Oracle. In all three cases the sequence will fail to insert a new record if the ID already exists. 

You could definitely implement this as a trigger in Postgres.</description>
		<content:encoded><![CDATA[<p>Frank:  I was referring specifically to the typical MySQL auto_increment and Postgres &#8220;SET DEFAULT NEXTVAL(&#8217;some_sequence&#8217;)&#8221; usage, which is also the typical way that you implement an auto-increment sequence in Oracle. In all three cases the sequence will fail to insert a new record if the ID already exists. </p>
<p>You could definitely implement this as a trigger in Postgres.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hawa</title>
		<link>http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/comment-page-1/#comment-426</link>
		<dc:creator>hawa</dc:creator>
		<pubDate>Wed, 25 Aug 2010 02:12:50 +0000</pubDate>
		<guid isPermaLink="false">http://earlruby.org/?p=36#comment-426</guid>
		<description>eloo..
i got problem..i run sequence code are created..but when i want to create trigger in TOAD he prompt me to insert value??
what value should i put in dialog box..tq</description>
		<content:encoded><![CDATA[<p>eloo..<br />
i got problem..i run sequence code are created..but when i want to create trigger in TOAD he prompt me to insert value??<br />
what value should i put in dialog box..tq</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pellicle</title>
		<link>http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/comment-page-1/#comment-422</link>
		<dc:creator>pellicle</dc:creator>
		<pubDate>Thu, 19 Aug 2010 00:48:09 +0000</pubDate>
		<guid isPermaLink="false">http://earlruby.org/?p=36#comment-422</guid>
		<description>very useful, thanks for your succinct post here.</description>
		<content:encoded><![CDATA[<p>very useful, thanks for your succinct post here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/comment-page-1/#comment-420</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Mon, 16 Aug 2010 06:39:10 +0000</pubDate>
		<guid isPermaLink="false">http://earlruby.org/?p=36#comment-420</guid>
		<description>Why would PostgreSQL fail in this situation? You can create (almost) the same trigger and function in plpgsql to do exactly the same trick as you do in Oracle.</description>
		<content:encoded><![CDATA[<p>Why would PostgreSQL fail in this situation? You can create (almost) the same trigger and function in plpgsql to do exactly the same trick as you do in Oracle.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Earl Ruby</title>
		<link>http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/comment-page-1/#comment-394</link>
		<dc:creator>Earl Ruby</dc:creator>
		<pubDate>Fri, 30 Apr 2010 23:53:46 +0000</pubDate>
		<guid isPermaLink="false">http://earlruby.org/?p=36#comment-394</guid>
		<description>If you want to force Oracle to use a particular tablespace for your index then yes, it&#039;s necessary.

If you don&#039;t care what tablespace Oracle sticks your index into then you can leave that part off.</description>
		<content:encoded><![CDATA[<p>If you want to force Oracle to use a particular tablespace for your index then yes, it&#8217;s necessary.</p>
<p>If you don&#8217;t care what tablespace Oracle sticks your index into then you can leave that part off.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eduardo F. Sandino</title>
		<link>http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/comment-page-1/#comment-392</link>
		<dc:creator>Eduardo F. Sandino</dc:creator>
		<pubDate>Thu, 29 Apr 2010 18:38:20 +0000</pubDate>
		<guid isPermaLink="false">http://earlruby.org/?p=36#comment-392</guid>
		<description>Hi Earl, first of all thanks for your article...

Just i have one question. 
Is really necesary to put &quot;using index tablespace INDX&quot; the tablespace when we are defining the index ?</description>
		<content:encoded><![CDATA[<p>Hi Earl, first of all thanks for your article&#8230;</p>
<p>Just i have one question.<br />
Is really necesary to put &#8220;using index tablespace INDX&#8221; the tablespace when we are defining the index ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Earl Ruby</title>
		<link>http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/comment-page-1/#comment-388</link>
		<dc:creator>Earl Ruby</dc:creator>
		<pubDate>Sat, 10 Apr 2010 18:52:11 +0000</pubDate>
		<guid isPermaLink="false">http://earlruby.org/?p=36#comment-388</guid>
		<description>That&#039;s actually three questions.

:new represents the new record, so :new.id is the id field of the new record that you&#039;re inserting.

See http://www.dba-oracle.com/sql/t_dual_table.htm for more info.</description>
		<content:encoded><![CDATA[<p>That&#8217;s actually three questions.</p>
<p>:new represents the new record, so :new.id is the id field of the new record that you&#8217;re inserting.</p>
<p>See <a href="http://www.dba-oracle.com/sql/t_dual_table.htm" rel="nofollow">http://www.dba-oracle.com/sql/t_dual_table.htm</a> for more info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SJari</title>
		<link>http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/comment-page-1/#comment-386</link>
		<dc:creator>SJari</dc:creator>
		<pubDate>Fri, 09 Apr 2010 11:43:38 +0000</pubDate>
		<guid isPermaLink="false">http://earlruby.org/?p=36#comment-386</guid>
		<description>I have just one question?

create or replace trigger example_insert
before insert on example
for each row
begin
    select example_id_seq.nextval into :new.id from dual;
end;

what is new.id ???
what is dual ???

what do they present, and how do I modify them to my need (just out of curiosity)?</description>
		<content:encoded><![CDATA[<p>I have just one question?</p>
<p>create or replace trigger example_insert<br />
before insert on example<br />
for each row<br />
begin<br />
    select example_id_seq.nextval into :new.id from dual;<br />
end;</p>
<p>what is new.id ???<br />
what is dual ???</p>
<p>what do they present, and how do I modify them to my need (just out of curiosity)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SJari</title>
		<link>http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/comment-page-1/#comment-385</link>
		<dc:creator>SJari</dc:creator>
		<pubDate>Fri, 09 Apr 2010 10:59:20 +0000</pubDate>
		<guid isPermaLink="false">http://earlruby.org/?p=36#comment-385</guid>
		<description>Thanks allot :-)

as Oracle is new for me ( coming from MySQL) I have to say that I&#039;m amazed that Oracle did not have such function!

but Thanks allot :-) you just made my day ;-)


cheers</description>
		<content:encoded><![CDATA[<p>Thanks allot <img src='http://earlruby.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>as Oracle is new for me ( coming from MySQL) I have to say that I&#8217;m amazed that Oracle did not have such function!</p>
<p>but Thanks allot <img src='http://earlruby.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  you just made my day <img src='http://earlruby.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>cheers</p>
]]></content:encoded>
	</item>
</channel>
</rss>
