<?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>Wed, 01 Feb 2012 08:32:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: siddharth sinha</title>
		<link>http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/comment-page-1/#comment-679</link>
		<dc:creator>siddharth sinha</dc:creator>
		<pubDate>Wed, 01 Feb 2012 08:32:10 +0000</pubDate>
		<guid isPermaLink="false">http://earlruby.org/?p=36#comment-679</guid>
		<description>there is better option then creatin a trigger 

SQL&gt; insert into example (id, name) values (example_id_seq.nextval, &#039;Earl111&#039;);
1 row created.


 here we are not suppore to use trigger. nextval will take care fo the same.</description>
		<content:encoded><![CDATA[<p>there is better option then creatin a trigger </p>
<p>SQL&gt; insert into example (id, name) values (example_id_seq.nextval, &#8216;Earl111&#8242;);<br />
1 row created.</p>
<p> here we are not suppore to use trigger. nextval will take care fo the same.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justus the octopus</title>
		<link>http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/comment-page-1/#comment-610</link>
		<dc:creator>justus the octopus</dc:creator>
		<pubDate>Sat, 26 Nov 2011 09:26:22 +0000</pubDate>
		<guid isPermaLink="false">http://earlruby.org/?p=36#comment-610</guid>
		<description>im so grateful  for this post i had this problem for 3 good days. when the autonumber column is a string then its a problem if the table has no data but it works well when its a number.</description>
		<content:encoded><![CDATA[<p>im so grateful  for this post i had this problem for 3 good days. when the autonumber column is a string then its a problem if the table has no data but it works well when its a number.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan Klumpp</title>
		<link>http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/comment-page-1/#comment-574</link>
		<dc:creator>Bryan Klumpp</dc:creator>
		<pubDate>Fri, 21 Oct 2011 05:05:18 +0000</pubDate>
		<guid isPermaLink="false">http://earlruby.org/?p=36#comment-574</guid>
		<description>I was having the same problem as mona with Oracle 10g XE.  However I&#039;m not sure it is a XE-specific issue.  I suspect it is related to the JDBC driver not handling the semicolons properly; it looks like it is trying to process it as multiple SQL statements.  My guess is that mona was trying to run in a JDBC-based tool like DB Visualizer or SQL Developer.  There may be a way to properly escape the semicolons but I gave up looking for it and found an easier way: try executing from SQL Plus, it worked for me.</description>
		<content:encoded><![CDATA[<p>I was having the same problem as mona with Oracle 10g XE.  However I&#8217;m not sure it is a XE-specific issue.  I suspect it is related to the JDBC driver not handling the semicolons properly; it looks like it is trying to process it as multiple SQL statements.  My guess is that mona was trying to run in a JDBC-based tool like DB Visualizer or SQL Developer.  There may be a way to properly escape the semicolons but I gave up looking for it and found an easier way: try executing from SQL Plus, it worked for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Creating auto-incremented PK column in Oracle as we know it from SQL Server &#171; Jacek Spólnik&#039;s blog</title>
		<link>http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/comment-page-1/#comment-569</link>
		<dc:creator>Creating auto-incremented PK column in Oracle as we know it from SQL Server &#171; Jacek Spólnik&#039;s blog</dc:creator>
		<pubDate>Sat, 17 Sep 2011 09:27:06 +0000</pubDate>
		<guid isPermaLink="false">http://earlruby.org/?p=36#comment-569</guid>
		<description>[...] can&#8217;t be complicated task. But Oracle suprised me again, so I looked for some solution. The post, which I found, describes how to do that in very clever way. And now, everything is simpler      [...]</description>
		<content:encoded><![CDATA[<p>[...] can&#8217;t be complicated task. But Oracle suprised me again, so I looked for some solution. The post, which I found, describes how to do that in very clever way. And now, everything is simpler      [...]</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-562</link>
		<dc:creator>Earl Ruby</dc:creator>
		<pubDate>Wed, 03 Aug 2011 18:27:29 +0000</pubDate>
		<guid isPermaLink="false">http://earlruby.org/?p=36#comment-562</guid>
		<description>Michele:

If you&#039;re worried about performance test it and see. Try inserting a million records into a database using the method1 trigger, then try it again with the method2 trigger. Time the results.

Let us know what you find.</description>
		<content:encoded><![CDATA[<p>Michele:</p>
<p>If you&#8217;re worried about performance test it and see. Try inserting a million records into a database using the method1 trigger, then try it again with the method2 trigger. Time the results.</p>
<p>Let us know what you find.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michele</title>
		<link>http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/comment-page-1/#comment-561</link>
		<dc:creator>Michele</dc:creator>
		<pubDate>Tue, 26 Jul 2011 11:26:02 +0000</pubDate>
		<guid isPermaLink="false">http://earlruby.org/?p=36#comment-561</guid>
		<description>thx for the article!

Performance of Method2 is the same of Method1?</description>
		<content:encoded><![CDATA[<p>thx for the article!</p>
<p>Performance of Method2 is the same of Method1?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mariyappan.C</title>
		<link>http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/comment-page-1/#comment-554</link>
		<dc:creator>Mariyappan.C</dc:creator>
		<pubDate>Fri, 20 May 2011 05:43:12 +0000</pubDate>
		<guid isPermaLink="false">http://earlruby.org/?p=36#comment-554</guid>
		<description>Auto increment of the column in 11G without  any  trigger  only applicable in 11g


CREATE SEQUENCE &quot;CM_4_0&quot;.&quot;TEST_SEQ&quot; MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 2 START WITH 1000031624 CACHE 20 NOORDER NOCYCLE ;
 
 create or replace  function F  return number  as 
 a number;
 begin return 
 select TEST_SEQ.NEXTVAL into a from DUAL;
return a;
 end;

drop table Z

create table Z( name varchar2(10), PRI number  generated always as(f()) VIRTUAL ); 


insert into z(name)values(&#039;asasa&#039;);
insert into Z(name)values(&#039;asasa&#039;);
insert into z(name)values(&#039;asasa&#039;);
insert into z(name)values(&#039;asasa&#039;);

commit;</description>
		<content:encoded><![CDATA[<p>Auto increment of the column in 11G without  any  trigger  only applicable in 11g</p>
<p>CREATE SEQUENCE &#8220;CM_4_0&#8243;.&#8221;TEST_SEQ&#8221; MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 2 START WITH 1000031624 CACHE 20 NOORDER NOCYCLE ;</p>
<p> create or replace  function F  return number  as<br />
 a number;<br />
 begin return<br />
 select TEST_SEQ.NEXTVAL into a from DUAL;<br />
return a;<br />
 end;</p>
<p>drop table Z</p>
<p>create table Z( name varchar2(10), PRI number  generated always as(f()) VIRTUAL ); </p>
<p>insert into z(name)values(&#8216;asasa&#8217;);<br />
insert into Z(name)values(&#8216;asasa&#8217;);<br />
insert into z(name)values(&#8216;asasa&#8217;);<br />
insert into z(name)values(&#8216;asasa&#8217;);</p>
<p>commit;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sweetie Bracelet</title>
		<link>http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/comment-page-1/#comment-525</link>
		<dc:creator>Sweetie Bracelet</dc:creator>
		<pubDate>Mon, 07 Feb 2011 05:38:12 +0000</pubDate>
		<guid isPermaLink="false">http://earlruby.org/?p=36#comment-525</guid>
		<description>,-~ thank you for posting a topic about this stuff, i was looking for it. ,-*</description>
		<content:encoded><![CDATA[<p>,-~ thank you for posting a topic about this stuff, i was looking for it. ,-*</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kunal</title>
		<link>http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/comment-page-1/#comment-517</link>
		<dc:creator>Kunal</dc:creator>
		<pubDate>Sun, 09 Jan 2011 12:53:14 +0000</pubDate>
		<guid isPermaLink="false">http://earlruby.org/?p=36#comment-517</guid>
		<description>Very simple and crisply written article on using Triggers and Sequences !</description>
		<content:encoded><![CDATA[<p>Very simple and crisply written article on using Triggers and Sequences !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: My Readings This Week &#8211; Ganda Manurung</title>
		<link>http://earlruby.org/2009/01/creating-auto-increment-columns-in-oracle/comment-page-1/#comment-508</link>
		<dc:creator>My Readings This Week &#8211; Ganda Manurung</dc:creator>
		<pubDate>Thu, 09 Dec 2010 07:50:39 +0000</pubDate>
		<guid isPermaLink="false">http://earlruby.org/?p=36#comment-508</guid>
		<description>[...] Creating Auto-Increment Columns in Oracle. The alternatives article. [...]</description>
		<content:encoded><![CDATA[<p>[...] Creating Auto-Increment Columns in Oracle. The alternatives article. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.588 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-02 03:59:25 -->

