<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://springboardsolutions.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Number_Rows_in_a_Table</id>
		<title>Number Rows in a Table - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://springboardsolutions.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Number_Rows_in_a_Table"/>
		<link rel="alternate" type="text/html" href="http://springboardsolutions.com/wiki/index.php?title=Number_Rows_in_a_Table&amp;action=history"/>
		<updated>2026-10-17T02:42:14Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.25.2</generator>

	<entry>
		<id>http://springboardsolutions.com/wiki/index.php?title=Number_Rows_in_a_Table&amp;diff=369&amp;oldid=prev</id>
		<title>WikiSysop: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://springboardsolutions.com/wiki/index.php?title=Number_Rows_in_a_Table&amp;diff=369&amp;oldid=prev"/>
				<updated>2016-03-25T08:51:12Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 08:51, 25 March 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>WikiSysop</name></author>	</entry>

	<entry>
		<id>http://springboardsolutions.com/wiki/index.php?title=Number_Rows_in_a_Table&amp;diff=367&amp;oldid=prev</id>
		<title>WikiSysop at 21:05, 27 May 2015</title>
		<link rel="alternate" type="text/html" href="http://springboardsolutions.com/wiki/index.php?title=Number_Rows_in_a_Table&amp;diff=367&amp;oldid=prev"/>
				<updated>2015-05-27T21:05:25Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Say you have a [[Microsoft SQL Server]] table (MyTable) with a number column (say 15 digits, no decimals called SequenceNum), and you want this column to count the rows. In [[Oracle Database]] you would simply update the column with rownum:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
update MyTable set SequenceNum = rownum&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In SQL Server, we need to set up a counter and then increment it as we go:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
declare @intCounter decimal(15,0)&lt;br /&gt;
select @intCounter = 0&lt;br /&gt;
update MyTable set @intCounter = SequenceNum = @intCounter + 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Microsoft SQL Server]]&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>	</entry>

	</feed>