i use pass_word_1 but still the same error message occur.
i try this
select userid from emp where userid = '1';
also cannot
Main Topics
Browse All TopicsORACLE
when i type this into oraEdit pro
select userid from emp where password = '22';
The message of
ORA-00904: "PASSWORD": invalid identifier
appear why??
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I mean "did any other query which you have exected works fine ?
is just this query is giving some error ?
ora-00904 error says invalid identifier. can you describe your TABLE emp AND see what ALL COLUMNS does it have ?
IN SQL*plus, we USE the below
SQL> DESC EMP -- to see the columns and their data types
also this is direct query without variables, so it should work right.
select userid from emp where userid = '1';
my problem is
i have one table created 2 days ago call emp1 table
emp1 table has only one field call userID
i try to use select on this emp1 table as shown below
select userID from emp1;--> it work
SO i try create a table called emp
emp table has the same field with emp1 which is userID
as shown below
select userID from emp; --> but this new created table shows an error message
state that userID is an invalid identifier. why?
Business Accounts
Answer for Membership
by: nav_kum_vPosted on 2008-03-12 at 21:41:07ID: 21113394
PASSWORD is an oracle keyword which is reserved by oracle for its use though it allows us to use that.
I suggest/advice you to rename the column in emp table to some other name and they query as shown below :
a) alter table emp rename column password to pass_word_1;
b) select userid from emp where password = '22';
Thanks