Question: I entered: Create table Horse( ID smallint auto_increment, RegisteredName varchar(15) not null, Breed varchar(20), Height decimal (3,1), Birthdate date, Contraint Horse_Pk primary key (ID), Contraint
I entered: Create table Horse( ID smallint auto_increment, RegisteredName varchar(15) not null, Breed varchar(20), Height decimal (3,1), Birthdate date, Contraint Horse_Pk primary key (ID), Contraint Horse_Check check(Breed in ('Egyptian Arab','holsieiner','Quarter Horse','Paint','Saddlebred')), Contraint Horse_Check_Height check(height>=10.0 and Height<=20.0), Contraint Horse_Check_Birthdate check(birthdate >= '2015-01-01')); /Horse table structure*/ describe horse; feedback: ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Horse_Pk primary key (ID), Contraint Horse_Check check(Breed in ('Egyptian Arab'' at line 8
What am I doing wrong? Liz
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
