Question: I can't create the table. It says check error on the check. Not supported by MySql workbench I CREATE TABLE KCT_LINEITEM( RentalID INT, CostumeID SMALLINT,
I can't create the table. It says check error on the "check." Not supported by MySql workbench

I CREATE TABLE KCT_LINEITEM( RentalID INT, CostumeID SMALLINT, Rate NUMERIC (8,2) CHECK(Rate > 0 ) NOT NULL, Deposit NUMERIC (8,2) NOT NULL, PRIMARY KEY (RentalID, Costume ID), FOREIGN KEY (CostumeID) REFERENCES KCT_Costume (CostumeID), FOREIGN KEY (RentalID) REFERENCES KCT_Rental (RentalID) );
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
