| Author |
bind variable does not exist
|
Steve Jiang
Ranch Hand
Joined: May 17, 2004
Posts: 106
|
|
I met the following error in jdbc java.sql.SQLException: ORA-01006: bind variable does not exist at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) The query can be excuated in SQL-plus without problem. SELECT A.ID, B.ID FROM (SELECT S.ID, S.NAME FROM S WHERE S.F_ID = ? ) A, (SELECT S.ID, S.NAME FROM S WHERE S.F_ID = ? ) B WHERE A.NAME = B.NAME (+) any comments? Thanks
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26201
|
|
Steve, What does the plus sign mean at the end of the query?
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
Steve Jiang
Ranch Hand
Joined: May 17, 2004
Posts: 106
|
|
right out join. to set 0 for id when there is no corresponding name available. [ May 20, 2005: Message edited by: Steve Jiang ]
|
 |
 |
|
|
subject: bind variable does not exist
|
|
|