Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Auto Increment String ID

I have orderNo as VarChar Autoincrement ID. For example, the last inserted record has order No "0000323". The next inserted record will be 0000324 accordingly. How can I implement this? In table, it doesn't store ID as integer but only as GUID. How can I know the last inserted orderNo? 

0683p000009M5oj.png

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

There is running number table to record last inserted number. I just retrieve number from this table. And it solve the problem.

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi,

 

   Why don't you store the maximum value of last inserted data to a control table? During next run, pick the value from this control table and use the starting value as last value+1.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

Anonymous
Not applicable
Author

There is running number table to record last inserted number. I just retrieve number from this table. And it solve the problem.