Click here to Skip to main content
15,071,899 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two tables with one to one relationship.
I want second table to have the same id when the first one is entered and committed.
How to do that? Thanks in advance.
Posted

Valentine_Kiev wrote:
I want second table to have the same id when the first one is entered and committed.


Use TRIGGER to enter the value in 2nd table when an entry is entered in first one.
   
There is an after trigger to deal with that, right?
But how am I supposed to get the value which is entered in first table?
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900