Devendra  Kumar

Devendra Kumar

  • NA
  • 517
  • 233.4k

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)