1. Add a new Vendor table
a. See table above for fields and data types
b. Use your username as the table definition, i.e., userid.Vendor, instead of Demo
c. Add Primary key ProductNo as a Constraint
Okay, I created the table with the fields and data types. Now when I go to add the primary key with the constraint and I get
ERROR at line 2:
ORA-00904: "VENDOR_NO": invalid identifier
When I enter:
Expand|Select|Wrap|Line Numbers
- ALTER TABLE slp5065.vendor ADD
- CONSTRAINT ProductNo PRIMARY KEY (Vendor_No);
Expand|Select|Wrap|Line Numbers
- Alter tables:
- Adding a single field as a Primary Key
- ALTER TABLE tablename ADD
- CONSTRAINT pk_name PRIMARY KEY (column_name);
What am I doing wrong?