|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
how can i delete all the records from a table
that have relation with the current deleted record . table : Network fields type Net_id numeric Descn varchar parent_id numeric net_id and parent_id are self joined net_id descn parent_id 1 cccccccccc 0 2 cdfdfdgfdfgdf 1 3 fgdsgfgfdg 2 4 rrrrrrrrttrt 2 when i delete the record having net_id=1,i want to delete the records having net_id 2,3,4 |
|
#2
|
|||
|
|||
|
PHP Code:
so when you want to delete 1 you actually want to delete every record that is not 1? |
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > Help needed (Delete Query) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|