Expand|Select|Wrap|Line Numbers
- create table employee
- (
- emp_code int,
- sex char(1) default 'f',
- constraint emp_primary primary key(emp_code)
- )
Then next when i tried to create an other table as follows
Expand|Select|Wrap|Line Numbers
- create table employee2
- (
- emp_code int,
- employee_address varchar(20),
- constraint fk_empcode foreign key(emp_code))
Msg 102, Level 15, State 1, Line 5
Incorrect syntax near 'emp_code'.
Hence kindly clarify the reason for the error and also suggest a suitable way to rectify the same