Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The simple sql statement:
SELECT * FROM DATACATEGORY where ImagePath = 'Images\DataCategory\Icons\Bus\'
returns me a couple of records in MS Access. But in Oracle SQL Developer, it shows:
An error was encounted performing the requested operation: ORA-00904: "IMAGEPATH": Invalid identifier 00904, 00000 - "%s invalid identifier".
If I run
SELECT * FROM DATACATEGORY where ID='2'
it is OK in Oracle SQL Developer.
What's wrong here in the Oracle SQL statement? Thanks.
Posted
Updated 18-Mar-14 7:05am
v2

1 solution

Tested in this way in Oracle SQL Developer:
SELECT * FROM tbl_datacategory where "ImagePath" = 'Images\DataCategory\Icons\Bus\'
namely added " " for the field name, then it works. Thanks for your review.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900