I have a table:
NACHRICHT_ID | VERFASSER_USERNAME | BETREFF | TEXT | DATUM | EMPAENGER_ID ------------------------------------------------------------------------------ | | | | 2009-07-01| 1 | h | hfgh | hfgh | 23:15:10 | 31 ------------------------------------------------------------------------------ | | | | 2009-07-02| 3 | h | hfgh | hfgh | 00:30:10 | 31 ------------------------------------------------------------------------------ | | | | 2009-07-02| 4 | q | hfgh | hi | 11:42:06 | 31 ------------------------------------------------------------------------------ | | | | 2009-07-02| 5 | h | hfgh | hfgh | 12:53:56 | 31 ------------------------------------------------------------------------------ | | | | 2009-07-02| 6 | h | hfgh | hfgh | 13:19:53 | 31 ------------------------------------------------------------------------------ | | | | 2009-07-02| 7 | h | hfgh | hfgh | 13:20:18 | 31 ------------------------------------------------------------------------------ | | | | 2009-07-02| 8 | mkd | hfgh | hfgh | 13:47:32 | 31 ------------------------------------------------------------------------------ | | | | 2009-07-02| 9 | h | hfgh | hfgh | 16:42:10 | 31 ------------------------------------------------------------------------------
I'm trying to delete the Row where NACHRICHT_ID = 3
:
DELETE FROM NACHRICHTEN JOIN
NACHRICHTEN_EMPFAENGER_MAP USING (NACHRICHT_ID)
WHERE EMPFAENGER_ID = 31 && NACHRICHT_ID = 3 ;
But it isn't working. What am I doing wrong?