How can you set the max row for a 'open cursor' in a stored proc?

I would like to know how can you set the maximum amount of row returned in a resultset coming from a stored proc?
You can do it via JDBC with cStatement.setMaxRows(10); but it works only for select that you do via JDBC...
I would like the same functionality using open cursor inside a stored proc...
Thanks...

is "where ROWNUM <= 10" the equivalent of "cStatement.setMaxRows(10);" because the ROWNUM as problem with the ORDER BY clause and the setMaxRows() as no problem...

Similar Messages

  • How can i set the alternating colors for a table rows

    Dear All,
    Please any one help me how can i set the Alternating colors for Table Rows.
    i created a theam there i set the background alternating color to brown and i set the table design properity to alternating. but it is not reflecting.

    Hi,
    The design property in Table properties should work for your requirement. Select "alternating" value for design.
    Please see the API below:
    design
    Determines the appearance of the table. The property design can take the following values and is represented by enumeration type WDTableDesign.
    alternating - The table rows are displayed alternately in a different color.
    standard - The table background has one color. The individual table rows are displayed with grid net lines.
    transparent - The table background is transparent. The individual table rows are displayed without grid net lines.
    Check whether you have changed the right property or not? Also table should contain more than one rows to test this scenario.
    Regards,
    Jaya.
    Edited by: VJR on Jun 17, 2009 6:43 PM

  • How do you set the font color for a specific entire row inside a JTable?

    How do you set the font color for a specific entire row inside a JTable?
    I want to change the font color for only a couple of rows inside a JTable.
    I've seen some ways to possibly do this with an individual cell.
    Clarification on changing the font color in an individual cell would be helpful too if
    there is no easy way to do this for a row.

    hai,
    Try out with this piece of code.Create your table and assign the renderer to each column in the table.
    CellColorRenderer m_CellColorRenderer = new CellColorRenderer();
    for(int i=0;i<your_JTable.getColumnCount();i++)
    your_JTable.getColumnModel().getColumn(i).setCellRenderer(m_CellColorRenderer);
    class CellColorRenderer extends JLabel implements TableCellRenderer
    CellColorRenderer()     
    setOpaque(true);     
    setHorizontalAlignment(LEFT);
    setVerticalAlignment(CENTER);
    setBackground(Color.white);
    setForeground(Color.black);
    protected void setValue(Object value)
         setText((value == null) ? "" : value.toString());
    public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected, boolean hasFocus, int row,int column)
         if(isSelected == true)
              setForeground(Color.red);
         else
              setForeground(Color.black);
         setValue(value);
         return this;
    regards,
    bala

  • How do you set the default magnification for Acrobat.  All documents that I open enlarge to 174% and are too big.

    How do you set the default magnification for Acrobat.  All documents that I open enlarge to 174% and are too big.  I see how to change the size after the document is open by going to File/properties/initial view and saving this setting.  I want all documents to open at 100% when they are first opened.  Can I set this as a default view?

    Hey Kris,
    You might go to Edit> Preferences> Zoom
    Do this without opening any particular PDF so that it applies to the program itself and not just one document.
    Try this and then let me know.
    Regards,
    Anubha

  • How can I set the desktop image for client computers?

    How can I set the desktop image for client computers using ARD or terminal?

    How can I set the desktop image for client computers using ARD or terminal?

  • How do I set the default folder for file - open file... ?

    When I save a file, photo, etc., the default folder for OPENING a file becomes the last folder I SAVED to - even after closing and reopening Firefox. Is there a way to maintain the same default folder for opening files?
    Thanks.

    Originally posted by: kwarner.uneedspeed.net
    Well... I found over 200 bugs none of which seemed to talk about setting
    the default folder. I probably missed the relevant bug in the spew.
    I ask a question here as a last resort -- after I've done what I think
    is an appropriate search for answers.
    But thanks for your help in any case.
    Daniel Megert wrote:
    > DemonDuck wrote:
    >
    >> When I need to open a file not in the workspace, I use File -> Open File.
    >>
    >> But the default folder it opens is in C:\Documents and
    >> Setting\Administrator
    >>
    >> I would like File -> Open File to first open in someplace more
    >> reasonable -- like the workspace.
    >>
    >> How do I set the default folder for File -> Open File ????
    >
    >
    > Is your '?' key broken? Check bugzilla there's a feature request
    > regarding your question.
    >
    > Dani

  • How can you set the ctxsvr time interval ?

    I would like to know how can i set the time
    inteval between each update of the Intermadia
    indexes.
    Thanks.

    stop and restart ctxsrv on specified intervals.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Lombar vincent ([email protected]):
    I'd like to use the ctxsrv utility, because i want automatic index rebuild.
    But Is it possible to set the time interval
    between each update?<HR></BLOCKQUOTE>
    null

  • How can I set the window options for command-N?

    Hi,
    I have let the Mac OS-X software update run (Java and a few other things), and now when I want a finder window by clicking on the smiling blue face or with command-N, I get a stripped window with only the volumes but no tool bar nor the folders short cuts. How can I restore the full window by default? I can still get the whole window set from the menu bar or with a 3 keys command, but I don't remember where I can set that to be the default window... thanks!

    Oh Sorry, I have found it "show tool bar" in the Presentation menu!

  • How can we set the Order block for One-Time Billto-address?

    Hi Experts,
    How can we set Order bolck,if user uses one-time bill to address and needs to trigger workflow for releasing process according to order block.
    Please suggest me.
    Thanks and Regards,
    Kiran

    suggest me pls!!!!

  • How do you set the home page for firefox for android?

    I have firefox installed on my tablet. How do i set the home page or start page?

    Hello lalbrecht5, see: https://support.mozilla.org/en-US/questions/953363
    thank you

  • How can you change the thumbnail selected for an Album in Photos?

    I'm having difficulty changing the photo that is automatically selected as the thumbnail on an iPad Air and iPad Mini.  How can I change this, and what parameter governs which photo is selected?
    There are a number of threads about changing the name, the creation date, the modified date, and none of those have worked for me.  After changing these various parameters, I have unsynced and resynced photos, and at this point, it is becoming an obsession of mine to change this. :-)
    I would appreciate any input if you've been able to do this in iOS7 and Maverics.  Thanks in advance!
    - Robert

    Okay, now it is working. I had to save the XLSX-file into the older XLS format, but that seems to work quite well.
    But I won't ever understand why InDesign loses its backward compatibility from one version to the other.
    Thank you, -hans-.

  • How can i set the Header colors for a group ui element

    Hi All,
                  I Created a View Container in that i crated 2 views. In first view i created a group and in second
    view also i created a group. I want to set The First view group header colour as Golden colour and for second view group heder colour as Green colour. Please any one help me on this.
    Thanks&Regards,
    Bhargava.

    Dear Jean,
                     i creted the theam. in the Complex Element Group i changed the Primary group colour to Golden Colour and secondry group colour to Green Colour. but in my application for all group's header it iis taking the golden colour.
                             in my senario i have 2 views in view container. each view have the separate Group ui element. i wan to set golden colour for first view's group and Green colour for the Second View Group.
    how can i do that.
    Thanks&Regards,
    Bhargava.

  • How do you set the menu button for a playlist?

    I have a "Play All" playlist that I want to return to the main menu (when the menu button on a DVD remote is pressed). Right now, it's going to one of my sub menus. I can't figure out why this is happening. Any help would be greatly appreciated.

    Thanks for the responses.
    My "Play All" playlist is not a button on a menu. It is actually the "First Play" of my DVD. I want the user to be able to hit the menu on their remote and then go to the main menu. What's happening is the menu button is going to a sub menu. I find it frustrating that you cannot set the remote button options for a playlist. If this can't be done, is there at least a way to set my main menu screen as my "top menu"? I don't want to set all of my timelines to the main menu. If I were to set it that way, all of the clips from the sub menus would go back to the main menu (when the menu remote button is pressed).

  • Remote...How can you set the your amplifier to be the default volume?

    Does anyone know how to set your amp to be the default volume control without have to switch between devices to change the volume?
    Can you have 2 devices on the screen at the same time. Like cable box and the amp?
    i've had other sony remotes that would do it.
    Solved!
    Go to Solution.

    I think sony should keep working on improving universal remote app.
    here's little sugestion from me allow sort off split screen option on 1 side one remote and on another side another remote with seperate scrolling perhaps.
    or tiny area dedicated to just program and volume buttons that can switch while having main remote on having tiny volume remote in tiny area on screen from any remote you choose like amplifier.
    anyway maybe this is already possible anyway.
    using main remote app and mini remote app at same time.
    having tv remote as normal remote and small mini app remote having amp controls aka volume
    Just tested works fine can even hit both power buttons at same time will power on my tv and amp at same time no problem.

  • How can you set a Firmware Password for Intel Macs?

    PPC macs can use the Open Firmware Password utility to protect the computer from someone booting of another drive to access your data http://docs.info.apple.com/article.html?artnum=106482
    How can this same protection be accomplished with Intel-Macs? Intel Macs use a different fireware/boot process, so OFP above doesn't work. according to the apple article above, it can be done - but it doesn't explain how:
    "Intel-based Macintosh computers can be protected by firmware passwords as well. The firmware in an Intel-based computer uses Extended Firmware Interface (EFI) technology"

    all I get is...
    Your Firmware is too old.
    The firmware on your machine is too old for Open Firmware Password to function. You will need 4.1.7 or later to use this application. Please visit the Apple website to get the latest firmware update for your system.

Maybe you are looking for