SQL Server Information and SQL Stuffs
Wednesday, December 23, 2009
Get Row number from query
use Row_Number() function to get row numbers in rows
ex.
select Row_Number() over (order by fieldname) as rowid, * from [Tablename]
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)