I am using Stored Procedures and Triggers to move data from a "temp" table to the "real" table. Once the record is moved from the temp table to the real table, I want to be able to delete the original record in the temp table.
I have had success with this when I use the "delete from temptable" syntax, but that deletes all records in the "temp" table, and in this instance more than one record could possibly be entered at the same time.
To make a long story short...how can I ensure that I only delete the record that was just entered?
Any assistance would be appreciated. Thanks very much.
I have had success with this when I use the "delete from temptable" syntax, but that deletes all records in the "temp" table, and in this instance more than one record could possibly be entered at the same time.
To make a long story short...how can I ensure that I only delete the record that was just entered?
Any assistance would be appreciated. Thanks very much.