Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Select record number

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-11-01 : 09:08:04
Len writes "How do I put a record number column in my select statement?


the output will look like this:
@@rowcount only gives the last recordcount


Select name from <TABLE


Recordnumber Name
1 A
2 B
3 C
4 D
5 E
6 F
"
   

- Advertisement -