Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8459

Re: How to FInd Last Iserted Row Id in Hana

$
0
0

I am looking for a function in SAP HANA which should return the Last ID generated by a Insert query on a table with a Column having the Auto_Increment Attribute ( Primary Key) . Something similar to the Mysql Function :  " MySql_Insert_ID() " function which returns the last inserted value of the Auto_Increment attribute. If the table does not have the a Auto_Increment attribute then this function  returns Zero.

 

I cannot use ROW_NUMBER() function cos  last Inserted value of the Auto Increment attribute and Row_Number() value are not same

 

Can You Please suggest me any solutions?

 

Regards,

Vimal


Viewing all articles
Browse latest Browse all 8459

Trending Articles