SET the VARIABLE problem

Hello world!

I added a line to my report of responses on the tab advanced, prefix section as follows:
SET VARIABLE DISABLE_CACHE_HIT = 1 DISABLE_CACHE_SEED = 1;

I also put a session variable by using the dashboard line. Then when I start my report, you receive the following error message:

A general error occurred. [nQSError: 27002] About < GAME >: Syntax error [nQSError: 26012]. (HY000)

Publ. SQL: SET VARIABLE sv_test = "Test"; SET VARIABLE DISABLE_CACHE_HIT = 1 DISABLE_CACHE_SEED = 1; SELECT...

So, the first SET statement is generated from Dashboard prompt and the second section of a throug prefix. I also tried to exclude 'SET the VARIABLE' section of my report prefix, but it still does not work. What is the correct syntax?

Help me, please!

TNX!

user10203008 the error is in a semi instead of the comma
SET the VARIABLE sv_test = "Test"<; !comma="" have="" to="" be="" here!="">SET VARIABLE DISABLE_CACHE_HIT = 1 DISABLE_CACHE_SEED = 1;

So you can do this quickly with variable pvVar presentation. And a prefix write
* SET VARIABLE sv_test='@{pvVar}',SET VARIABLE DISABLE_CACHE_HIT is 1 DISABLE_CACHE_SEED = 1;. *

It must works.

Published by: AnTonic January 26, 2011 12:23

Tags: Business Intelligence

Similar Questions

  • Set the Variables in a separate timeline of problems

    Hi all

    I'm having a problem strange setting variables in video clips of another (relative chronology). I run the following code from the clip relative to the target child clips it contains.

    setVars = function (clip, value) {}

    clip.val1 = value;

    clip.val2 = 0;

    clip.onEnterFrame = function() {}

    trace ("work function");

    trace ("value 1 =" + val1);

    trace ("value 2 =" + val2);

    };

    }

    I am trying to set variables in a movie clip targeted by the argument of 'clip' setVars service but they are drawn as undefined. However, works of fine function. I have also tried to manually set the variables in the clip and am still not able to change outside the setVars function.

    What I'm doing wrong here? Any help would be greatly appreciated.

    use:

    setVars = function (clip, value) {}

    clip.val1 = value;

    clip.val2 = 0;

    clip.onEnterFrame = function() {}

    trace ("work function");

    trace ("value 1 =" + this.val1);

    trace ("value 2 =" + this.val2);

    };

    }

  • How to set the variable when you click on text/image

    Hello

    I have the following parts of the code. What I'm trying to do is set a variable and then the new window will read this variable and show detail appropriate according to the value. I call the new window, no problem, but struggling to get all of the variable 'productidkey '...

    Image

    < td width = "202" rowspan = 2 align = "center" bgcolor = "#FFFFFF" >
    < a href = 'details.php' > < form method = "POST" action = "details.php' style =" margin-bottom: 0; ">
    < input type = "hidden" id = "productidkey" name = "productidkey" value = "6198' > < img src ="6198.JPG"width ="200"height = '133' alt ="in more detail"border = '1' >"
    < / form > < /a > < table >

    Text

    < td >
    < div align = "right" >
    < are method = "POST" action = "details.php' style =" margin-bottom: 0; ">
    < input type = "hidden" id = "productidkey" name = "productidkey" value = "6198' > < a href = 'details.php' > < span class ="TexteÉlément"> < b >... < /b >"
    </span > < / form > < / div > < table >

    It works:




  • Bind the Variable problem

    Hi all

    CREATE OR REPLACE PROCEDURE PRMADM_BATCH. UPDATE_PROC_LOG (p_SRC_SYS_ID VARCHAR,
    p_APPL_MOD_NM VARCHAR, p_INPT_OBJ_NM VARCHAR, VARCHAR, p_OUTPT_OBJ_NM p_ERR_ID
    VARCHAR, p_ERR_DESC VARCHAR)
    AS
    number of p_OUTPT_ROW_CNT;
    number of p_INPT_ROW_CNT;
    p_OUTPT_SQL VARCHAR2 (4000);
    p_INPT_SQL VARCHAR2 (4000);
    number of p_ERR_ID_CHK;
    BEGIN
    IF p_ERR_ID = 0 THEN - success
    p_OUTPT_ROW_CNT: = 0;
    p_INPT_ROW_CNT: = 0;
    p_OUTPT_SQL: = NULL;
    p_INPT_SQL: = NULL;
    p_ERR_ID_CHK: = 0;
    DBMS_OUTPUT. PUT_LINE ('SRC_SYS_ID =' | p_SRC_SYS_ID);
    p_OUTPT_SQL: = 'SELECT COUNT (*) FROM "| p_OUTPT_OBJ_NM | ' WHERE
    SRC_SYS_ID =: a ';
    p_INPT_SQL: = 'SELECT COUNT (*) FROM "| p_INPT_OBJ_NM | ' WHERE
    SRC_SYS_ID =: b';
    DBMS_OUTPUT. Put_line (p_OUTPT_SQL);
    DBMS_OUTPUT. Put_line (p_INPT_SQL);
    EXECUTE IMMEDIATE p_OUTPT_SQL IN p_OUTPT_ROW_CNT IN USING p_SRC_SYS_ID;
    EXECUTE IMMEDIATE p_INPT_SQL IN p_INPT_ROW_CNT IN USING p_SRC_SYS_ID;
    Else - failure
    p_OUTPT_ROW_CNT: = - 1;
    p_INPT_ROW_CNT: = - 1;
    p_OUTPT_SQL: = NULL;
    p_INPT_SQL: = NULL;
    p_ERR_ID_CHK: = - 1;
    SELECT COUNT (*) IN the p_ERR_ID_CHK OF PRMADM. ERR WHERE ERR_ID =
    p_ERR_ID;
    IF p_ERR_ID_CHK = 0 THEN
    INSERT INTO PRMADM. ERR (ERR_ID, ERR_DESC) VALUES (p_ERR_ID,
    p_ERR_DESC);
    COMMIT;
    END IF;
    END IF;
    UPDATE PRMADM. PROC_LOG
    SET PROC_END_DY_DT = SYSDATE,
    INPT_ROW_CNT = p_INPT_ROW_CNT,
    OUTPT_ROW_CNT = p_OUTPT_ROW_CNT,
    ERR_ID = p_ERR_ID
    WHERE APPL_MOD_NM = p_APPL_MOD_NM
    AND PROC_END_DY_DT IS NULL
    AND OUTPT_OBJ_NM = p_OUTPT_OBJ_NM
    AND INPT_OBJ_NM = p_INPT_OBJ_NM
    AND SRC_SYS_ID = p_SRC_SYS_ID;
    COMMIT;
    END UPDATE_PROC_LOG;
    /

    The proc above is running well and gives the result below

    SRC_SYS_ID = 1030
    SELECT COUNT (*) IN THE PRMADM. PGM WHERE
    SRC_SYS_ID =: a
    SELECT COUNT (*) IN THE PRMADM. INPT_PGM WHERE
    SRC_SYS_ID =: b


    My question is where can I enter the value for the variable bind a and b...

    I want to put two to 1030

    Thanks in advance

    Ndiaye (ndiaye) wrote:
    p_SRC_SYS_ID (input in my proc parameter) takes the value of 1030 and I want that the connection variable: an and: b take the same value...

    But they take this value...

    EXECUTE IMMEDIATE p_OUTPT_SQL IN p_OUTPT_ROW_CNT IN USING p_SRC_SYS_ID;
    EXECUTE IMMEDIATE p_INPT_SQL IN p_INPT_ROW_CNT IN USING p_SRC_SYS_ID;

    The 'USE' of the declaration part links the value to bind variables in the SQL statement.

    Where is the problem?

  • Setting the focus problem - stadium is null?

    I'm trying to programmatically set the development of a textinput, however the debugger throws me this error:

    Cannot access a property or method of a null object reference.

    I'm trying to set the focus with this line

    stage.focus = input
    

    For reference, here's a bit of the code

    package views
    {
        import flash.display.GradientType;
        import flash.display.Graphics;
        import flash.display.Shape;
        import flash.events.MouseEvent;
        import flash.events.TouchEvent;
        import flash.geom.Matrix;
        import flash.text.TextFormat;
        import flash.text.TextFormatAlign;
    
        import qnx.input.IMFConnection;
        import qnx.ui.buttons.LabelButton;
        import qnx.ui.core.UIComponent;
        import qnx.ui.display.Image;
        import qnx.ui.text.Label;
        import qnx.ui.text.TextInput;
    
        public class RenamePopupContainer extends UIComponent
        {
            private var input:TextInput;
            private var file:String;
    
            public function RenamePopupContainer(_file:String)
            {
                super();
                file = _file;
                setSize(1024, 600);
                setPosition(0, 0);
                createChildren();
    
                IMFConnection.imfConnection.showInput();
                stage.focus = input;
            }
    
            private function createChildren():void
            {
                var labelFormat:TextFormat = new TextFormat();
                labelFormat.color = 0xFFFFFF;
                labelFormat.size = 28;
                labelFormat.align = TextFormatAlign.CENTER;
    
                var mat:Matrix = new Matrix();
                mat.createGradientBox(400, 1);
    
                var line1:Shape = new Shape();
                line1.x = 312;
                line1.y = 92;
                line1.graphics.beginGradientFill(GradientType.LINEAR, [0xeeeeee, 0xeeeeee, 0xeeeeee], [0, 1, 0], [0, 127, 255], mat);
                line1.graphics.drawRect(0, 0, 400, 1);
                line1.graphics.endFill();
                addChild(line1);
    
                var label:Label = new Label();
                label.text = "Rename to?";
                label.setSize(450, 40);
                label.setPosition(287, 43);
                label.format = labelFormat;
                addChild(label);
    
                input = new TextInput();
                input.setSize(380, 40);
                input.setPosition(322, 120);
                input.text = file;
                addChild(input);
    
                var line2:Shape = new Shape();
                line2.x = 312;
                line2.y = 190;
                line2.graphics.beginGradientFill(GradientType.LINEAR, [0xeeeeee, 0xeeeeee, 0xeeeeee], [0, 1, 0], [0, 127, 255], mat);
                line2.graphics.drawRect(0, 0, 400, 1);
                line2.graphics.endFill();
                addChild(line2);
    
                var btnOk:LabelButton = new LabelButton();
                btnOk.setSize(120, 40);
                btnOk.setPosition(384, 210);
                btnOk.label = "Ok";
                btnOk.addEventListener(MouseEvent.CLICK, ok);
                addChild(btnOk);
    
                var btnCancel:LabelButton = new LabelButton();
                btnCancel.setSize(120, 40);
                btnCancel.setPosition(519, 210);
                btnCancel.label = "Cancel";
                btnCancel.addEventListener(MouseEvent.CLICK, cancel);
                addChild(btnCancel);
            }
        }
    }
    

    This is a fairly common problem: placement of a DisplayObject property has the value NULL until it has been added to the display list.  There are a few solutions, but the easiest for you would be, if this object never will be added to the display list once.

    // in place of your existing stage.focus line
    addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
    
    ...
    
    private function onAddedToStage(e:Event):void {
        removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
        stage.focus = input;
    }
    
  • How can I use a script to set the variables?

    I have a script to set a few variables and I need to run the script multiple times throughout the form, for different users at different times.  How can I configure the script as an object in the Variables and call it when I need to run it?  Appreciate all help.  I use SS3.

    var emailSubject = "";
    var cleanDate = Page1.EventDetails.Block2.SpeakingDate.rawValue.replace(/[\/]/g, "-");
    var eventName = Page1.EventDetails.Block1.EventName.rawValue;
    var eventCity = Page1.EventDetails.USaddress.CityEvent.rawValue;
    var eventState = Page1.EventDetails.USaddress.StateEvent.rawValue;
    emailSubject = cleanDate + " - " + eventName + " - " + eventCity + " - " + eventState;
    

    To create a function to be able to reuse the code easily right click in your hierarchy (for example, on your "form1"), click "insert a Script object.

    A new script object will be created, just rename it to something appropriate and then create a function both inside and

    function myFunction(var1,var2,var3){
    ' just an example '
    page1.textfield1.rawValue = var1 + var2 + var3
    }
    

    (I didn't fully understand the significance of the date and the event and the city, and exactly what your function is supposed to do, but it's how you declare a function).

    To call this function you simply reference as form1.scriptobjectname.myFunction(123,"asdf",variablename)

    (just one example of the possible arguments).

    I hope that's not too hard to follow,

    Best regards, Mattias

  • Table row with loop for each group to set the variable.

    HI: There is probably a simple answer for this, but I don't the have not found...

    I have a single row table to move through a group to set a variable containing a sum running. I'm not display the amount in the table but when I saw the report, I see that the table is expanding (add lines) for each loop.

    The only line table has 3 columns.

    1st column
    <? for-each: AC_GROUP? >

    2nd column
    <? xdoxslt:set_variable ($_XDOCTX, 'xAmtVar', xdoxslt:get_variable($_XDOCTX,'xAmtVar') + CURRENT_AMOUNT)? >

    3rd column
    <? end foreach? >

    Can I use <? for each group? > or something else. My requirement is to set the value of the variable with the total running, but because the loop is adding lines for each value he travels (though not displayed), it's also affecting other areas of the presentation of the page.

    Hope it makes sense. Thanks in advance.

    You can do it many ways.

    No need to loop
    You can create a variable and specify the amount of the sum directly to that.

    
    

    or

    loop through, then add as you do.

    
    

    give any space or enter characters in a word between them, just put it in a single form field will be

    But as I said, I'd definitely go with the first option.

  • How to set the variable if condition-based

    I use a generator of BI Publisher model for word 10.1.3.4 and I need set variable based on if condition something like this:

    If Status = "open" set X = X + 1 other value Y = Y + 1


    Thanks in advance

    Dive together and read the variables in the IF.

    http://download.Oracle.com/docs/CD/E12844_01/doc/BIP.1013/e12187/T421739T481157.htm#4535390

  • ORACLE ADMINISTRATION TOOLS - MANAGE SECURITY AND THE VARIABLE - PROBLEM

    To manage security, I use an external "DIM_DMT_PRIVILEGE" table with 3 columns: user, Type and value

    I created a block of initialization in the variable management section named 'CATEGORY' by the next expression of inititialisation:

    SELECT "CATEGORY", DMT_VALUE_CD
    OF DIM_DMT_PRIVILEGE T
    WHERE T.DMT_TYPE_CD = 'CT '.
    AND)
    High (T.DMT_USER_CD) = upper ('VALUEOF (NQ_SESSION.) THE USER) ")"
    OR T.DMT_USER_CD in ('VALUEOF (NQ_SESSION.) (GROUP)')

    The problem is that the initialization state * "upper (T.DMT_USER_CD) = upper ('VALUEOF (NQ_SESSION.)" "USER)") "* success but the other *" or T.DMT_USER_CD in ('VALUEOF (NQ_SESSION.) GROUP) ")" * don't.

    In the external table, the column user contain users and groups of users, security groups, and users.

    Thanks for your help,

    Kevin

    Hello

    In your select statement, you must use the name of the database table columns and not the names of the variables defined in the initialization block.

    Looks like you used the names of variables in a query, if I understand correctly.

    According to my understnading, you must use...

    SELECT DMT_TYPE_CD, DMT_VALUE_CD
    OF DIM_DMT_PRIVILEGE T
    WHERE T.DMT_TYPE_CD = 'CT '.
    AND)
    High (T.DMT_USER_CD) = upper ('VALUEOF (NQ_SESSION.) THE USER) ")"
    OR T.DMT_USER_CD in ('VALUEOF (NQ_SESSION.) (GROUP)')

    It will store these values corresponding to you first two variables defined in the initialization block.

  • Set the variable to the text entered in a text box

    Hello. I have 2 text boxes on a form that the user can type in numbers. I just want to add the numbers that they typeRegeditdans together and the response of output. I'm a simple and will get more complicated with my calculations later. I've done the calculations to work if they are entered in a database, but we need to work on the fly based on what the user has typed in the text boxes.

    I am only able to set the text of the box and their output values, but I can't bring it to add up. I have some javascript that displays what has been typed in areas using CFSet. Is it the way I should write this? Is it possible to condense the javascript, or I have to separate each set of code text box on? Is there another way to do this simple calculation with just Cold Fusion, or do I have the javascript to enter numbers that are entered in the text boxes? Here is the code I have below. If you delete the CFset price and output price, you will see that this code generates areas of text X and Y. thank you for your help.

    < name cfparam = "url. X"default =" ">

    < name cfparam = "url. "By default Y" = "" >

    < cfoutput >

    < script type = "text/javascript" >

    var pageSoumettre = ' #jsStringFormat (url. X)#';

    function appenX() {}

    document.getElementById('submitLink').href = '? X=' +

    encodeURIComponent)

    (pageSubmit.length? pageSubmit + ',' :'') +)

    document.getElementById('X').value);

    }

    var pageSoumettre = ' #jsStringFormat (url. Y)#';

    function appenY() {}

    document.getElementById('submitLink').href = '? Y=' +

    encodeURIComponent)

    (pageSubmit.length? pageSubmit + ',' :'') +)

    document.getElementById('Y').value);

    }

    < /script >

    < name cfform = "theForm" action = "" # "method ="get">"

    < cfinput type = "text" name = "X" id = "X" value = "" > < br / >

    < cfinput type = "text" name = 'Y' id = 'Y' value = "" >

    < input type = "submit" id = "submitLink" onclick = "appenX (); "onclick ="appenY (); "value ="Update">

    < / cfform >

    < cfset X = #url. X # >

    < cfset #url =. Y # >

    < cfset price = X + Y >

    #X # < br / >

    #Y #.

    #Price #.

    < / cfoutput >

    Andy

    Mixture of Javascript with Coldfusion is unnecessarily complex. If all you need is to add the value of two form fields, then just Google javascript add form fields and you will get a lot of suggestions.

    For example, http://stackoverflow.com/questions/5074073/how-can-i-add-form-values-using-javascript

    X:

    Y:

    Total:

  • Link and set the Variable

    Hello

    Can someone explain the difference between these two variables and their use?

    Thanks in advance.

    Kind regards
    Vipin

    In addition to the previous response... Here's something I posted the year last on the difference between Bind variables and Substitution variables...

    Re: substitution vs bind variable

    Which is to define the variables... you explain what you mean by that.

  • Newbie how to set the variable of type element?

    JDEV 10.1.3.1

    When I do the following in JDEV BPEL Designer...

    new variable
    create the variable
    Select the element type
    Select a file local xsd schema
    Select the item of choice

    Seems to define OK but fails to compile. Namespaces seem to include the namespace defined in the xsd.

    When I define variables of type message and navigate to the appropriate wsdl file and choose a message there that seems to work / compiles very well.

    I'm sure that since I am just getting started it's a common error, please help and thank you. All variables must be defined as messages types and reside in a WSDL file?

    Thank you
    John

    Hi John,.

    I don't know if it is possible to import a schema in a process directly. What I usually do is to import the WSDL describing the interface. This is the file that you use to define the client-partnerlink. If your schema is imported correctly, you can access the type definition via the partner-links-node in the type selector (this works at least in JDEV 10.1.3.3 and 10.1.3.4).
    To import your schema in the wsdl, you must switch to the display structure in wsdl editor and after a right-click on the node types to select "insert types." Inside types, you insert the XML schema within the schema, you must insert an import tag. The properties for this tag are the location of the file and the target namespace used in the schema. The XML structure that results should look like this:

    -----




    namespace = "http://xmlns.oracle.com/Order_Booking___Shipment" / >



    -----

    Greetings,

    Christoph

  • How to set the variable USERPROFILE of another user?

    I have the main account that I use and an admin account to call anytime, that I need (for security system). I recently came across problems with repartition my hard drive (it's a bit difficult to change the size of the partition between a basic volume and an extended volumes, even with a third-party utility that performs its work until Windows starts and wanted to completely pass the two user profiles (and preferably both program files)) (, but I can't even more with after discovering that most of my programs have themselves out of their expanded paths and not system variables linking the search through the registry) for the extended partition. I was trying to see if I could do that through a batch file (whose content I have so far for the non-admin will be shown below after this post), but I can't find anything in the registry that I could change. My question is twofold:

    1. I try to take the right path by using a batch script to move the two users? If I did do something wrong and if so, what?
    2. How could I put a variable user for another user on the same system? (It is a continuation of question 1)
    3. (Second question) Is it possible to move my programs Program Files/Program Files (x 86) runs on my D: drive and operate them out of that? I was also wanting to have just my system files and similar to run on my C: drive, because of the drastically limited space. The only exceptions to that would be the dozen of programs that are installed in the folder root (aka C:\whatever).
    I tried repartitioning earlier, because I wanted to make room for my C: drive D: drive much smaller to create many more. Here are the sizes of partition for each partition on my HARD drive:

    • 100 MB (OEM Partition)
    • 9.77 GB (recovery Partition)
    • 58,59 GB (C:, OS, 6,49 GB drive left... not enough for me to copy it to my iTunes songs about library 1 200 on it from my old netbook)
    • 229.63 GB (D: drive, too much for my tastes here)
    I wouldn't mind if I ended up having to save my D: drive format before that, but I don't know how useful it would be.

    Code for the batch file (I named it moveuser.bat)
    (the first line and the last two lines are to refuse to execute the batch file and DO NOT EXECUTE comments)
    GoTo EOF
    cmd
    title moveuser.bat
    MD C:\TEMP\cmdtmp
    MD "D:\From C\Users\" " " ".
    MD 'D:\From C\Program Files files.
    MD ' D:\From C\Program Files (x 86) \Common Files.
    CD C:\Users\Isiah
    Robocopy ".» "------" "D:\From C\Users\" /e /mt:2 /copyall /dcopy:t /tee /log:C:\TEMP\cmdtmp\tmp.txt ".
    set USERPROFILE = "D:\From C\Users\""" "
    CD appdata\local
    RD ' virtualStore\program files (x 86) \aura4you "/s /q
    CD C:\TEMP
    RD /s /q cmdtmp

    : EXPRESSIONS OF FOLKLORE
    REM 'DO NOT RUN. "

    Your system is too complicated. If you implement it then it'll keep you causing pain. Much better to keep things simple as follows:

    • Move the 'My pictures' folder on the D: drive.
    • Move the 'My music' folder on the D: drive.
    • Let your profiles on the C: drive.
    • Let the program files on drive C:, if only because many setup programs will create their files in "C:\Program Files (x 86)" instead of using the % ProgramFiles (x 86) % as they should.
    This approach will free a lot of space on the C: drive. It will also allow you to put your iTunes library on the D: drive.
    A few comments on your batch file:
    GoTo EOF
    cmd
    . . .
    : EXPRESSIONS OF FOLKLORE
    ': EOF ' is a built-in label that references at the end of the batch file. You jump to it as follows: goto: eof. Have a line of the form
    : EXPRESSIONS OF FOLKLORE
    interferes with the integrated label. Get rid of it!
    The "cmd" line is not necessary and will have unexpected side effects. Get rid of it.
  • ADF where can I set the variable binding VO?

    I created VO with bind variable 'BPM_USER_NAME '.

    In VOImpl.java I have getter and setter:

    public void setBPM_USER_NAME (String value) {}

    ensureVariableManager () .setVariableValue ("BPM_USER_NAME", value);

    }

    I plugged my .jspx to BephorePhase - #{pageFlowScope.SimpleBean.beforePhase}

    My SimpleBean.java beforePhaseof the method:

    Public Sub beforePhase (PhaseEvent phaseEvent) throws SQLException {}

    If (phaseEvent.getPhaseId () == PhaseId.RENDER_RESPONSE) {}

    Logger.Warning ("InventoryIlliquid - BeforePhase");

    FacesContext fctx = FacesContext.getCurrentInstance ();

    AdfFacesContext = AdfFacesContext

    AdfFacesContext.getCurrentInstance ();

    Boolean isInitialRequest =! adfFacesContext.isPartialRequest (fctx);

    If {(isInitialRequest)

    OnLoad();

    System.out.println ("InventoryIlliquid - onload");

    }

    else System.out.println ("InventoryIlliquid - NO onload");

    }

    }

    public void onload() {}

    Nobody PersonIdVOImpl = new PersonIdVOImpl();

    person.setBPM_USER_NAME ("user");

    }

    I won't set my ' BPM_USER_NAME 'user' and after that my form will open see results. " Where should I write my code?

    What is the error you get?

    Are you viewCriteria assistance or a variable base of bind query?

    and do not write like this

    PersonIdVOImpl p = new PersonIdVOImpl(); / / use this. getPersonIdVo();

    p.setbpm_user_name ("username");

  • Set the Variable in the select statement

    Hello

    Can we define a variable in the select statement.

    Example:

    Select firstname, lastname
    employees;

    in this simple select statement we can define x as number?
    select fname,lname
    from employees
    where rownum <= 30;
    

Maybe you are looking for