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
Explain what are the different type of segments?
What are temporal data types in oracle?
How many categories of data types?
Which is better Oracle or MS SQL? Why?
How to use subqueries with the exists operator in oracle?
Can we create trigger on materialized view in oracle?
What is format trigger?
Other than making use of the statspack utility, what would you check when you are monitoring or running a health check on an Oracle 8i or 9i database?
How to export data to a csv file?
How to shutdown your 10g xe server from command line?
What are the tools for Oracle ?
Please explain me all types of Data models. Also give me the details if each model can have other name.for example:schematic data model is also known as conceptual data model and entity relation data model.
What is transport network substrate (tns) in oracle?
How to retrieve values from data fields in record variables?
How to set up autotrace for a user account?