<?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: How Not to Create Auto Increment Columns in Oracle</title>
	<atom:link href="http://www.lifeaftercoffee.com/2006/02/17/how-not-to-create-auto-increment-columns-in-oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lifeaftercoffee.com/2006/02/17/how-not-to-create-auto-increment-columns-in-oracle/</link>
	<description>because I don't believe in life before coffee...</description>
	<lastBuildDate>Wed, 28 Oct 2009 06:44:36 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Francis F</title>
		<link>http://www.lifeaftercoffee.com/2006/02/17/how-not-to-create-auto-increment-columns-in-oracle/comment-page-1/#comment-5549</link>
		<dc:creator>Francis F</dc:creator>
		<pubDate>Fri, 29 Sep 2006 12:06:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/02/17/how-not-to-create-auto-increment-columns-in-oracle/#comment-5549</guid>
		<description>You don&#039;t need the clumsy case statement where nvl will do

nvl(max(id),0)+1 

will do the trick. But you&#039;re right anyway. It will lock other users out. Thanks for the tip about currval being session bound in the other note, I always thought it was global. Sadly all of the JDBC code that allows you to do an insert and get the last ID back won&#039;t work with Oracle, to get the right effect you&#039;d have to do a returning clause and I don&#039;t know if that&#039;s fully supported by the other databases.</description>
		<content:encoded><![CDATA[<p>You don&#8217;t need the clumsy case statement where nvl will do</p>
<p>nvl(max(id),0)+1 </p>
<p>will do the trick. But you&#8217;re right anyway. It will lock other users out. Thanks for the tip about currval being session bound in the other note, I always thought it was global. Sadly all of the JDBC code that allows you to do an insert and get the last ID back won&#8217;t work with Oracle, to get the right effect you&#8217;d have to do a returning clause and I don&#8217;t know if that&#8217;s fully supported by the other databases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BorkWeb</title>
		<link>http://www.lifeaftercoffee.com/2006/02/17/how-not-to-create-auto-increment-columns-in-oracle/comment-page-1/#comment-210</link>
		<dc:creator>BorkWeb</dc:creator>
		<pubDate>Mon, 20 Feb 2006 13:33:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/02/17/how-not-to-create-auto-increment-columns-in-oracle/#comment-210</guid>
		<description>&lt;strong&gt;Oracle&#8217;s Auto Incrementing with Sequences...&lt;/strong&gt;

My previous post, titled: &#8216;Sequence-less/Trigger-less Oracle Auto Increment&#8216; was shot out of the water by my friend and DBA, Jon Emmons.  Glad to see that I can be kept in line.
So I have resigned to use Oracle Sequences as a safer means fo...</description>
		<content:encoded><![CDATA[<p><strong>Oracle&#8217;s Auto Incrementing with Sequences&#8230;</strong></p>
<p>My previous post, titled: &#8216;Sequence-less/Trigger-less Oracle Auto Increment&#8216; was shot out of the water by my friend and DBA, Jon Emmons.  Glad to see that I can be kept in line.<br />
So I have resigned to use Oracle Sequences as a safer means fo&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Life After Coffee &#187; How to Create Auto Increment Columns in Oracle</title>
		<link>http://www.lifeaftercoffee.com/2006/02/17/how-not-to-create-auto-increment-columns-in-oracle/comment-page-1/#comment-206</link>
		<dc:creator>Life After Coffee &#187; How to Create Auto Increment Columns in Oracle</dc:creator>
		<pubDate>Fri, 17 Feb 2006 16:28:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/02/17/how-not-to-create-auto-increment-columns-in-oracle/#comment-206</guid>
		<description>[...] After pointing out how not to create auto increment columns in Oracle, I suppose I should point out how to create auto increment columns in oracle. [...]</description>
		<content:encoded><![CDATA[<p>[...] After pointing out how not to create auto increment columns in Oracle, I suppose I should point out how to create auto increment columns in oracle. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
