![]() |
Re: Etwas komlizierte DELETE-Statement???
Ich hatte das ja etwas anders formuliert...
SQL-Code:
DELETE FROM ldf_objects
FROM ldf_objects x WHERE NOT EXISTS (SELECT * FROM ldf_objects WHERE id = x.id AND ic_datetime > DATEADD(m, -3, GETDATE())) |
Re: Etwas komlizierte DELETE-Statement???
Ich hatte eine FROM absichtlich entfernt, dachte omata hat sich verschrieben... :wall:
Sorry, so geht das natürlich sofort. Vielen Dank an alle und vielen Dank Omata! |
Alle Zeitangaben in WEZ +1. Es ist jetzt 21:15 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz