Is it possible to select the value of a sequence? (like you can select using Oracle?)
I know you can use the pub.'SEQUENCE_NAME'.NEXTVAL when inserting data into db, but I just would like to get the value of sequence.
If this were 4GL rather than SQL you would use NEXT-VALUE() and CURRENT-VALUE(). Soooooo... just guessing, I don't write much SQL, but you might want to give pub.'SEQUENCE_NAME'.CURRENTVAL or maybe pub.'SEQUENCE_NAME'.CURRVAL.
Which seems kinda silly to me because a sequence has no implicit relation to a table in Progress. But anyhow this is how you can get it. (If you have 10.1B+ then use select top 1 so you only get 1 result back.)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.