Link to home
Start Free TrialLog in
Avatar of directxBOB
directxBOBFlag for Ireland

asked on

MYSQL Constraint Check

I've been trying to get the CHECK working in MYSQL and from what I am reading it's not yet been implemented.

How would I go about getting this to work:

ALTER TABLE contracts
ADD CONSTRAINT contract_check CHECK (value >500 )
Avatar of Roger Baklund
Roger Baklund
Flag of Norway image

As you have allready read, it is not implemented, alas, you can not get it to work.
Avatar of directxBOB

ASKER

is there any form of work around? Perhaps a trigger mechanism.
ASKER CERTIFIED SOLUTION
Avatar of Roger Baklund
Roger Baklund
Flag of Norway image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial