ORA- 00903: invalid table name error when creating table
FranklinFaces.com
FranklinFaces.com - Oracle & SQL Server Database Forums for all IT Professionals
 Home          Members     Calendar     Who's On

Welcome Guest ( Login | Register )
        



ORA- 00903: invalid table name error when... Expand / Collapse
Message
Posted 12/10/2011 3:13:46 PM Post #595
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
I am trying to create a table using Oracle 10g Express. I am using the following code and am receiving the ORA-00903 error.

create table Item_Ordered (product_ID INTEGER NOT NULL, Order_ID INTEGER NOT NULL, Quantity INTEGER, PRIMARY KEY (Product_ID, Order_ID), FOREIGN KEY (Product_ID) REFERENCES Product(Product_ID), FOREIGN KEY (Order_ID) REFERENCES Order (Order_ID));

I have tried taking out the underscore but it still gives me an error. I have already created the Product and Order tables in which the foreign keys are referencing with no problem. Does anyone have any suggestions about how to fix this?

Thanks.

Matt
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 7:11pm

Powered By InstantForum.NET v4.1.4 © 2012
Execution: 0.023. 10 queries. Compression Disabled.
Contextual Links