Create table Employee
(
Employee_Id varchar2(8) Constraint emp_id_pk primary key,
FirstName varchar2(50),
LastName varchar2(50),
DeptID Number(5)
Constraint dept_id_fk Foreign Key(DeptId)
References Department(DeptId)
)
Error I am getting: Constraint specification are not
allowed here
Answer Posted / durgarao k
Create table Employee
(
Employee_Id varchar2(8) Constraint emp_id_pk primary key,
FirstName varchar2(50),
LastName varchar2(50),
DeptID Number(5),
Constraint dept_id_fk Foreign Key(DeptId)
References Department(DeptId)
)
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is partitioned table in Oracle?
Why do we need integrity constraints in a database?
How to convert times to characters in oracle?
What is a nvl function?
How to use "in" parameter properly?
What are the uses of Database Trigger ?
What is the difference between view and materialized view in Oracle?
What is the usage of save points in oracle database?
What is an oracle cursor variable?
How to pass a cursor variable to a procedure?
How to enter a new row into a table interactively?
Is oracle a language?
How to assign a table row to a record variable?
What are nested tables?
How to use "in out" parameter properly?