Bill Crawley
November 24th, 2003, 11:08 AM
Hi All,
I have a table where the Key is auto generated by the database.
Once I have performed my insert into this table, I need to get that record immediately and then insert into another table using the Key generated as the Foreign key to the second table. How do I ensure that I can gaurentee that I am obtaining the correct record from the first table, I cannot garuntee that any other columns on my first table will be unique.
I have a table where the Key is auto generated by the database.
Once I have performed my insert into this table, I need to get that record immediately and then insert into another table using the Key generated as the Foreign key to the second table. How do I ensure that I can gaurentee that I am obtaining the correct record from the first table, I cannot garuntee that any other columns on my first table will be unique.