Resolved Auto Increment Key
- How-to
- James Medick
- PowerBuilder
- Tuesday, 26 May 2020 09:52 PM UTC
I hate to ask this, but is there an effective way to retrieve the key value after insert on a table using Auto Increment? I've read all the blogs, some say to use the Identify Column on the Update Rows option. Doesn't work. Or if it does, the problem is in actually retrieving it (just using GetItemNumber, last row?). MYSQL will let me do it through Select Last_Insert_id() but only if it is on the same line as the Insert statement. PB doesn't seem to like this and separating them doesn't work.
I'm sure there is something obvious regarding how to do this but darned if I can find it.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.