Click here to Skip to main content
15,889,034 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello
i have a subscriber table. this table has ID (PK) column.
another table is PhoneNumbr. each PhoneNumber is assigned to one subscriber.
these two table has relationship. now i need first update SubscriberID column in PhoneNumber table then update ID column in Subscriber.
i can't do it.
please guide me.
Thanks
Posted
Comments
Nirav Prabtani 12-Jun-14 8:30am    
why you need to update primary key column??

1 solution

You need to the reverse. First Insert ID in Subscriber table and then use the same id to insert in Phonenumber table.
 
Share this answer
 

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