skip to Main Content

Mysql – Why Can't create table in this way?

I have a set of sql statements, CREATE TABLE PRICING( CodeVillage INT, TypeCabin INT, CodeSeason CHAR(2), WeekPrice INT, PRIMARY KEY(CodeVillage, TypeCabin, CodeSeason) ); CREATE TABLE SEASON( CodeSeason CHAR(2) PRIMARY KEY, NameSeason VARCHAR(20), CONSTRAINT Fk_Pricing_CodeSeason Foreign KEY (CodeSeason) REFERENCES PRICING(CodeSeason) );…

VIEW QUESTION
Back To Top
Search