<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: How to generate sequences and surrogate keys in generic SQL</title>
	<link>http://www.xaprb.com/blog/2006/04/20/sequences-and-surrogate-keys-in-generic-sql/</link>
	<description>Stay curious!</description>
	<pubDate>Thu, 24 Jul 2008 00:18:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: osql</title>
		<link>http://www.xaprb.com/blog/2006/04/20/sequences-and-surrogate-keys-in-generic-sql/#comment-4867</link>
		<author>osql</author>
		<pubDate>Wed, 07 Mar 2007 12:41:17 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/04/20/sequences-and-surrogate-keys-in-generic-sql/#comment-4867</guid>
		<description>&lt;p&gt;I've already created the table, the column I want to have is a primary key number column, which has already got data inserted into it can you help?
I want the number to be auto generated.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;ve already created the table, the column I want to have is a primary key number column, which has already got data inserted into it can you help?<br />
I want the number to be auto generated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2006/04/20/sequences-and-surrogate-keys-in-generic-sql/#comment-2151</link>
		<author>Xaprb</author>
		<pubDate>Wed, 11 Oct 2006 12:50:47 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/04/20/sequences-and-surrogate-keys-in-generic-sql/#comment-2151</guid>
		<description>&lt;p&gt;Not that I can think of right away.  To do that you have to number the rows you're inserting, and add an offset to make them begin at the largest number in the table.  You could do this by &lt;a href="/blog/2005/09/27/simulating-the-sql-row_number-function/" rel="nofollow"&gt;simulating the ROW_NUMBER function&lt;/a&gt;, but it would be ugly at best.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Not that I can think of right away.  To do that you have to number the rows you&#8217;re inserting, and add an offset to make them begin at the largest number in the table.  You could do this by <a href="/blog/2005/09/27/simulating-the-sql-row_number-function/" rel="nofollow">simulating the ROW_NUMBER function</a>, but it would be ugly at best.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olle</title>
		<link>http://www.xaprb.com/blog/2006/04/20/sequences-and-surrogate-keys-in-generic-sql/#comment-2150</link>
		<author>Olle</author>
		<pubDate>Wed, 11 Oct 2006 10:25:11 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/04/20/sequences-and-surrogate-keys-in-generic-sql/#comment-2150</guid>
		<description>&lt;p&gt;Is there a way to insert several rows at once and have the counter increment by one for each row? For instance "insert into t1log" with a select statement that returns several rows instead of one as in your example above?&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Is there a way to insert several rows at once and have the counter increment by one for each row? For instance &#8220;insert into t1log&#8221; with a select statement that returns several rows instead of one as in your example above?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2006/04/20/sequences-and-surrogate-keys-in-generic-sql/#comment-1665</link>
		<author>Xaprb</author>
		<pubDate>Tue, 29 Aug 2006 11:39:31 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/04/20/sequences-and-surrogate-keys-in-generic-sql/#comment-1665</guid>
		<description>&lt;p&gt;I know no way to do that.  I suspect you have a serious flaw in your table design if you need this.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I know no way to do that.  I suspect you have a serious flaw in your table design if you need this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rabin nayak</title>
		<link>http://www.xaprb.com/blog/2006/04/20/sequences-and-surrogate-keys-in-generic-sql/#comment-1662</link>
		<author>rabin nayak</author>
		<pubDate>Tue, 29 Aug 2006 08:17:23 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/04/20/sequences-and-surrogate-keys-in-generic-sql/#comment-1662</guid>
		<description>&lt;p&gt;How can I make two columns autoincrement simultaneously in a single table?&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>How can I make two columns autoincrement simultaneously in a single table?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2006/04/20/sequences-and-surrogate-keys-in-generic-sql/#comment-1655</link>
		<author>Xaprb</author>
		<pubDate>Mon, 28 Aug 2006 16:13:54 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/04/20/sequences-and-surrogate-keys-in-generic-sql/#comment-1655</guid>
		<description>&lt;p&gt;I think I already did that.  If you don't understand part of this article, which part?  I can try to clarify.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I think I already did that.  If you don&#8217;t understand part of this article, which part?  I can try to clarify.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rain nayak</title>
		<link>http://www.xaprb.com/blog/2006/04/20/sequences-and-surrogate-keys-in-generic-sql/#comment-1654</link>
		<author>rain nayak</author>
		<pubDate>Mon, 28 Aug 2006 15:09:42 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/04/20/sequences-and-surrogate-keys-in-generic-sql/#comment-1654</guid>
		<description>&lt;p&gt;Please make me clear how can I create sequence for muliple column in a single table?&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Please make me clear how can I create sequence for muliple column in a single table?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
