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

In order to keep track of  Last Inserted records in all the tables  ,  I  have generic Insert function which accepts the Table as parameter and returns back last value of  AUTO_INCREMENT column .

We did this using Mysql function LAST_INSERT_ID() which gives me the value  of the  AUTO_INCREMENT column of the most recently executed ,  In other words the Id of the Latest record.

 

Now with the Hana Implementation in Our application I wanted to do something similar to it in order to keep track of the current record .

 

Can you advice any generic solution for this ?

 

Regards,

Vimal


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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