|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
delete all records except one?
I am trying: DELETE FROM `countries` WHERE NOT countries_id = 223
What is wrong with it? I want to delete every record where countries_id is not 223
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.
|
|
#2
|
|||
|
|||
|
DELETE * FROM countries WHERE countries_id <> 223
S- |
|
#3
|
||||
|
||||
|
thanks. that <> looked too ASPish to me so I didn't even try it. much appreciated.
|
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > delete all records except one? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|