I'm working on an Access database
, and I want to save a Check Constraint
as a query. Is that even possible in Access
??
Anyhow, this is my Query:
ALTER TABLE LEVERANCIER
ADD CONSTRAINT chk_postcode CHECK(
NOT EXISTS(
SELECT levnr, postcode
FROM LEVERANCIER
WHERE Left(postcode, 4) = 5050 OR Woonplaats = "Amsterdam"));
It does work in AnySQL Maestro, but it doesn't work in Access..
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…