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 -> Re: Dynamic and Static Query. Cursor

Re: Dynamic and Static Query. Cursor

From: SteveC <stevec_at_sfsu.edu>
Date: 27 Jan 2006 11:03:40 -0800
Message-ID: <1138388620.064143.138920@o13g2000cwo.googlegroups.com>


Good grief. Could you mis-align your code any more? A little organization and aligning goes a long way when looking at code.

Drop all those useless and confusing parentheses in the final where clause. All you need is:
WHERE XNUM BETWEEN V_PAGE_SIZE * (V_PAGE_NO-1) + 1                AND V_PAGE_SIZE * V_PAGE_NO And add a final Order-by clause:
  ORDER BY XNUM Received on Fri Jan 27 2006 - 13:03:40 CST

Original text of this message

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