Devendra  Kumar

Devendra Kumar

  • 1.6k
  • 517
  • 203.1k

record not delete if id use another table in sql query

Jun 13 2016 5:59 AM
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)