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]
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment