Quantcast
Channel: CSharp Forum Latest Questions
Viewing all articles
Browse latest Browse all 32170

I have a problem in creation of table with CONSTRAINT in sql

$
0
0
Following is my query, can any one help me to over come this .

I am getting "  #1064 - 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 'CONSTRAINT pri_ky primary key,job_id int CONSTRAINT not_l NOT NULL)' at line 1 " as error

create table employee(employee_id int CONSTRAINT pri_ky primary key,job_id int CONSTRAINT not_l NOT NULL)
 


Viewing all articles
Browse latest Browse all 32170

Trending Articles