<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Updating Oracle Sequences to the Next Highest Unused ID</title>
	<link>http://www.brianburridge.com/2005/08/04/updating-oracle-sequences-to-the-next-highest-unused-id/</link>
	<description>Brian Burridge shares his thoughts and opinions on Internet Software Architecture and Development, chronicles his current projects and areas of research, and give tips and tricks he discovers along the way.</description>
	<pubDate>Wed, 20 Aug 2008 23:45:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: Tod McQuillin</title>
		<link>http://www.brianburridge.com/2005/08/04/updating-oracle-sequences-to-the-next-highest-unused-id/#comment-66</link>
		<pubDate>Tue, 13 Sep 2005 05:07:38 +0000</pubDate>
		<guid>http://www.brianburridge.com/2005/08/04/updating-oracle-sequences-to-the-next-highest-unused-id/#comment-66</guid>
					<description>The use of a temporary table is not required.  You can get the same result with a query like this:

select max(id) from (
             select report_id as id from report
       union select chart_id as id from report_chart
       union select datasource_id as id from report_datasource
       union select group_id as id from report_group
       union select parameter_id as id from report_parameter
       union select reportuser_id as id from report_user
)
</description>
		<content:encoded><![CDATA[<p>The use of a temporary table is not required.  You can get the same result with a query like this:</p>
<p>select max(id) from (<br />
             select report_id as id from report<br />
       union select chart_id as id from report_chart<br />
       union select datasource_id as id from report_datasource<br />
       union select group_id as id from report_group<br />
       union select parameter_id as id from report_parameter<br />
       union select reportuser_id as id from report_user<br />
)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Curt Sampson</title>
		<link>http://www.brianburridge.com/2005/08/04/updating-oracle-sequences-to-the-next-highest-unused-id/#comment-65</link>
		<pubDate>Tue, 13 Sep 2005 04:08:38 +0000</pubDate>
		<guid>http://www.brianburridge.com/2005/08/04/updating-oracle-sequences-to-the-next-highest-unused-id/#comment-65</guid>
					<description>Oh, the humanity! This alone would make it worth switching from Oracle to PostgreSQL, where you say:

SELECT setval('report_report_id_seq', coalesce((SELECT max(report_id) FROM report), 1))</description>
		<content:encoded><![CDATA[<p>Oh, the humanity! This alone would make it worth switching from Oracle to PostgreSQL, where you say:</p>
<p>SELECT setval(&#8217;report_report_id_seq&#8217;, coalesce((SELECT max(report_id) FROM report), 1))
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
