Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> problem z delete, myqsl
motorolka24
post
Post #1





Grupa: Zarejestrowani
Postów: 90
Pomógł: 0
Dołączył: 21.04.2007

Ostrzeżenie: (0%)
-----


Witam. Mam problem z deletem. mam takie tabele

kategoria
----------
id

kategoriemarek
----------------
id
kategoriaid
markaid

marka
-------
id

dane
------
id
markaid


  1. DELETE FROM dane WHERE dane.id IN (SELECT dane.id
  2. FROM dane, marka, kategoriemarek, kategoria WHERE kategoria.id=1 AND kategoria.id=kategoriemarek.kategoriaid AND kategoriemarek.markaid=marka.id AND marka.id=dane.markaid);


Chce usunac wszystkie dane ktore sa odpowiednie dla kategorii =1

W mysql wyskakkuje mi taki blad: ERROR 1093 (HY000): You can't specify target table 'dane' for update in
FROM clause


Czy ktos wie co jest zle? Prosze o odpowiedz
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 18:12