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 the difference difference between $ORACLE_HOME and $ORACLE_BASE.
What is sharded cluster?
What privilege is needed for a user to create views in oracle?
Explain cascading triggers.
Explain about integrity constraint?
What happens to the indexes if a table is recovered?
What is the effect of setting the value "all_rows" for optimizer_goal parameter of the alter session command? What are the factors that affect optimizer in choosing an optimization approach?
What is the purpose of tables, private synonyms and public synonyms in Oracle?
What is a connect identifier?
How to count duplicated values in a column in oracle?
Give the various rollback segment states.
What are the attributes of the cursor?
How to execute the package in oracle?
Explain how are indexes update?
How many types of segments in Oracle?