3
Answers

record not delete if id use another table in sql query

i friend  how to prevents delete operation if one table id use another table
 
like i have one table  city and there  value ajmer, jaiupr, etc
 
and another table district and  in this table use city id and when i will delete city then if city id use in district table that not delete else delete  
Answers (3)