Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JDBC and Relational Databases
Getting Errror ORA-00904: invalid column name
sovan chatt
Ranch Hand
Posts: 43
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am trying to create a table using the following query
create table ticketdetails(ticketno number(6) not null ,flno number(6) not null,fl_date date not null,origin varchar2(10) not null,desti varchar2(10) not null,fname varchar2(20) not null,lname varchar2(20) not null,age number(5) not null,seat_type varchar2(20) not null,primary key(tiketno,flno),foreign key(flno,fl_date) references flightdetails(flno,fl_date));
but whenever I try to do so ,I get the following error
Errror ORA-00904: invalid column name
.I can not trace the error. Please help!
chris webster
Bartender
Posts: 2407
36
I like...
posted 12 years ago
1
Number of slices to send:
Optional 'thank-you' note:
Send
Check the name of your primary key column.
In general, try running SQL in a proper SQL tool e.g. Oracle
SQLDeveloper
or even just SQL*Plus, and break it up into sensible chunks to debug it.
No more Blub for me, thank you, Vicar.
sovan chatt
Ranch Hand
Posts: 43
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
@chris webster thanks a lot..
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Getting error message - chapter 9 of ejb 3 in action using glassfish server 2.1
Oracle Stored Procedure Problem
Searching words in VARCHAR2 & CLOB
How to join two tables on columns that have different names?
update while doing save in hibernate
More...