vlet
12-30-01, 04:30 AM
I'm actually writing this in perl, but I can just translate it...
in a table on my DB, I have a few fields that store whatever data, but the first field is an autoincremented unique number, so when I execute an INSERT statement to add a record, I do not have to include that particular field - it is fileld in by the DB. Does anyone know how I can retrieve that number without executing a SELECT statement - The Autoincremented ID is the only thing that keeps the records unique from one another, so I would not be able to find the ID by searching a different field.
I'm guessing it has something to do with the statement handle, but I don't know the way to retrieve it.
Any help would be appreciated - Thanks!
in a table on my DB, I have a few fields that store whatever data, but the first field is an autoincremented unique number, so when I execute an INSERT statement to add a record, I do not have to include that particular field - it is fileld in by the DB. Does anyone know how I can retrieve that number without executing a SELECT statement - The Autoincremented ID is the only thing that keeps the records unique from one another, so I would not be able to find the ID by searching a different field.
I'm guessing it has something to do with the statement handle, but I don't know the way to retrieve it.
Any help would be appreciated - Thanks!