Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: How to FInd Last Iserted Row Id in Hana

$
0
0

Hi,

 

I am not sure if there something available for external use, but there is MAX_ROWID column in M_CS_TABLES which may provide you the last row id for the table. But this column is supposed to be used for internal purpose only, hence may not be recommended.

 

There is also ROW_NUMBER() function as part of the window functions, but that works on the data partition based on the partition criteria defined.

 

What is your exact requirement. Can you use an alternative like using a sequence and using it to populate a column defined in your table for row identified. You can always refer the the current value of the sequence which could be your max value for the row identifier.

 

Regards,

 

Ravi


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>