MySQL Forums
Forum List  »  German

Deletebefehl einer Abfrage
Posted by: Martin Kohler
Date: December 17, 2015 06:51AM

Hallo zusammen,

ich habe mir eine Abfrage gebastelt, mit der ich auf meinen korrekten Datensatz komme. Jetzt muss ich nur noch diesen Satz mit einem Delete-Befehl löschen, aber leider funktioniert es nicht (Fehler 1093).
Kann mir Jemand helfen, bitte?

Select min(concat(WormNr, Dateinr)) as ID from schussen.hdgrs030
where barcode in (
Select basis.barcode
from
(SELECT 1 as Zaehler, barcode FROM schussen.hdgrs030
where belart = '142') basis
group by barcode
having count(basis.zaehler) > 1)

Options: ReplyQuote


Subject
Views
Written By
Posted
Deletebefehl einer Abfrage
1086
December 17, 2015 06:51AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.