is there any way to find out any reference of primary key value exist in Database.
Like
| Id | Country Name |
| 1 | India |
| Id | CountryId | State |
| 1 | 1 | Gujarat |
| 2 | 1 | Punjab |
now, how can i find that india is in use in state table before delete.
| Id | Country Name |
| 1 | India |
| Id | CountryId | State |
| 1 | 1 | Gujarat |
| 2 | 1 | Punjab |
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sreekanth ReddyPosted Oct 31, 2018, 4:43 AM
Dheeraj SharmaPosted Oct 31, 2018, 4:36 AM
Sreekanth ReddyPosted Oct 31, 2018, 4:36 AM