AW: [pgsql-de-allgemein] Re: [pg sql-de-allgemein] AW: [pgsql-de- allgemein] Mehrere Einträge anha nd Primary-Key-Liste löschen

"Mag. Dr. Stefan Krejci" <[email protected]>
Newsgroups gmane.comp.db.postgresql.german
Message-ID <[email protected]>
Sodala, das wars, vielen herzlichen Dank an alle!
 
Das Stichwort war „IN“ im Beispiel von Susanne. Kannte ich natürlich, hab’s aber mit meiner Problemstellung überhaupt nicht verlinkt – das war also die Leitung, auf der ich stand J…
 
Die Lösung lautet nun:
 
DELETE FROM "LxAbo"
 WHERE (("LxAboLAboID" = ‘testAboID’) AND
        ("LxAboBibID" = '40922002321') AND
        ("LxAboLID" IN ((SELECT "LID" FROM "Leser" AS l WHERE (EXTRACT(YEAR FROM AGE(l."LGebDat"))) >= 6))))
 
Jetzt werd ich mir die wCTEs zu Gemüte führen…
 
Danke nochmal, schönen Abend! Stefan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.