I have a table with only one row to get unique ID-numbers. To get the next
ID-number I have to increase the number in the row: first, get the number
from the database, and then do the update.
Some ASP-code:
Set rs = db.execute("SELECT id FROM tbl_id")
id = rs("id")
db.execute("UPDATE tbl_id SET id ="& id + 1 &"")
This is not safe: two different sessions cat get the same ID.
Is it possible to increase the value of id in tbl_id and get the value at
the same time? Or is there any other way?
/matte