If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > ASE 15.5 Row Number Question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-14-11, 04:33
oppee oppee is offline
Registered User
 
Join Date: Apr 2011
Posts: 6
ASE 15.5 Row Number Question

Hello,

Does ASE 15.5 support "Row_Number() over" clause as SQL Server?
If not is there any alternative for doing similar function in ASE. Many Thanks.
Reply With Quote
  #2 (permalink)  
Old 04-14-11, 04:54
pdreyer pdreyer is offline
Registered User
 
Join Date: May 2005
Location: South Africa
Posts: 1,268
Insert into temp table with identity column
Reply With Quote
  #3 (permalink)  
Old 04-14-11, 05:32
oppee oppee is offline
Registered User
 
Join Date: Apr 2011
Posts: 6
Thanks Pdreyer,

Do you know the syntax of select identity into a temp table in ASE?

e.g. select identity(1) as 'ROWID' , * into #tmp from #table
Reply With Quote
  #4 (permalink)  
Old 04-14-11, 07:11
pdreyer pdreyer is offline
Registered User
 
Join Date: May 2005
Location: South Africa
Posts: 1,268
select ROWID=identity(int), * into #tmp from ...
Reply With Quote
  #5 (permalink)  
Old 04-14-11, 10:08
oppee oppee is offline
Registered User
 
Join Date: Apr 2011
Posts: 6
Many Thanks pdreyer.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On