Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15519

[RESOLVED] Return identity PK to a new table

$
0
0
Code:

Insert into Accounts(Jd, xID)
Output Inserted.ID
Select Jd, xID from Temp where Jdx = 80

This output lists all the PKs of the newly inserted rows. Is there a way I could generate a new table using "Select Into" using the output as a column? I've tried a few ways with no success.

Viewing all articles
Browse latest Browse all 15519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>