5 lines
227 B
MySQL
5 lines
227 B
MySQL
|
ALTER TABLE vn.parking
|
||
|
ADD CONSTRAINT chkParkingCodeFormat CHECK (CHAR_LENGTH(code) > 4 AND code LIKE '%-%');
|
||
|
ALTER TABLE vn.shelving
|
||
|
ADD CONSTRAINT chkShelvingCodeFormat CHECK (CHAR_LENGTH(code) <= 4 AND code NOT LIKE '%-%');
|