Can someone tell me where I'm going wrong? or is it possible to do this?
I wrote the query like this:
DELETE FROM reservas WHERE ID NOT IN (SELECT ID,IDORIGEM FROM reservas WHERE ID='387' and IDORIGEM='387');
The id field keeps always the same value as the first record which is what I do not want to be excluded.
example:
ID IDORIGEM
387 387
490 387
510 387
650 387
mysql is giving this error message:
1241 - Operand should contain 1 column (s)