![]() |
Re: ausnahmen in datenbank feuern
Hallo Sancho!
Deine ursprünglich beschriebene Überprüfung ist über Check-Constraints möglich. Hier mal ein Beispiel:
SQL-Code:
SET SQL DIALECT 3; SET NAMES ISO8859_1; CREATE TABLE TEST ( W INTEGER, X INTEGER, Y INTEGER, Z INTEGER ); ALTER TABLE TEST ADD CONSTRAINT CHK1_TEST check (((w is not null and (x is null and y is null and z is null)) or (w is null)) ); Hope it helps Thomas |
Alle Zeitangaben in WEZ +1. Es ist jetzt 04:17 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 by Thomas Breitkreuz