Re: WHERE mit AND

Re: WHERE mit AND

am 30.03.2008 00:56:45 von hellbringer

Martin Pöpping schrieb:
> hellbringer schrieb:
>
>>> DELETE FROM 'logs' WHERE (id > '368') AND (id < '1102');
>>
>> DELETE FROM `logs` WHERE id > 368 AND id < 1102;
>
> Nein, geht auch nicht:
>
> Fehler
>
> SQL-Befehl:
>
> DELETE FROM 'logs' WHERE id >368 AND id <1102
>
> MySQL meldet: Dokumentation
> #1064 - You have an error in your SQL syntax; check the manual that
> corresponds to your MySQL server version for the right syntax to use
> near ''logs' WHERE id >368 AND id <1102' at line 1
>
>
> Es handelt sich um die MySQL Server Version: 4.1.22
>
> Hat noch jemand irgendwelche anderen Ideen?

ja,

DELETE FROM `logs` WHERE id > 368 AND id < 1102;

Bitte diesmal richtig abtippen, dann funktioniert es auch.