VoiceGuide IVR Software Main Page
Jump to content

Get Last Inserted Id

Recommended Posts

I use the VBscript module to insert records into a MySQL table with transactions (commit, rollback).

How can I get the last inserted ID, that is, the unique number which is automatically generated with an auto increment?

1. I need it in a variable so it can be announced to the caller

2. I need to insert it into another table as reference number

 

For example, I insert a new payment record and I need the automatically generated PaymentID for reference and also for inserting in another time table.

Share this post


Link to post

This is more of a MySQL related question rather then a VoioceGuide related question - yo should be asking questions like these on a MySQL forum.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×