Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parantheses error in Select statement.

Status
Not open for further replies.

NitinJain

Programmer
Jun 28, 2002
18
0
0
IN
Hello!

I have executed the following code without any errors in Oracle8, but give an error related to the parantheses when executed in oracle 9i.

CODE::::
...
...
...
SELECT (NodeType = 3 OR NodeType = 4 OR NodeType = 8)?????
INTO nodeIsText
FROM t_Node
WHERE id = thisNode;
....
....
....

Can any one please suggest something on this.

Regards.

Nitin
 
you can use my suggestion in the other post you made
or change your SQL to:

select 'TRUE' into nodeIsText
from t_Node
where id=thisNode
and (NodeType = 3 OR NodeType = 4 OR NodeType = 8);

.
.. Eat, think and be merry .
... ....................... .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top