Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Subquery within PL/SQL fails

Subquery within PL/SQL fails

From: Nathan <manicksooad_at_yahoo.com>
Date: 2 Oct 2003 14:21:50 -0700
Message-ID: <2982e832.0310021321.2c69834b@posting.google.com>


Hi:
When i try running the following query in my pl/sql block, SELECT chatsessiontoken into latesttoken,assignedstatus into assignstatusfromdb FROM (SELECT * FROM from tbl_crmvisitorinfo where visiturl=url and clientip=ip order by chatsessiontoken desc) WHERE ROWNUM<2;

i get the following error:
Line # = 24 Column # = 59 Error Text = PL/SQL: ORA-00923: FROM keyword not found where expected
Line # = 24 Column # = 3 Error Text = PL/SQL: SQL Statement ignored

I run oracle version: 9.0.1.1.1

Any help is appreciated.

I am trying to get the top 1 row, after ordering desc.

Thanks,
Nathan Received on Thu Oct 02 2003 - 16:21:50 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US