Can I create a cursor and set the values by myself

Can I create a cursor and set the values by myself, and it has not been filled by an SQL?

Thanks in advance

Yes, you can.
Use variables with a default value or nvl (some_parameter, some_variable) in your cursor WHERE predicate.
They provide an example if it isn't clear, since that's all I can think about reading your post...

Tags: Database

Similar Questions

  • Can I buy 5 LightRoom and set the language for the Portuguese (Brazilian)?

    Can I buy 5 LightRoom and set the language for the Portuguese (Brazilian)?

    Yes, https://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_lightroom

  • How to use PL/SQL to create dynamic action to set the value of a selection by another list?

    Hello

    I would like to know how to use PL/SQL to create dynamic action to set the value of a list of selection by another selection list.

    1.PNG

    I wish can create dynamic action to manage the two above the Room select list (: P9_ROOM) and building (: P8_BUILDING).

    When you select "1074" in the bathroom, building highlights like "BRM BLD 5"

    When you select 'Area of the black box' in the room, building must assign the value "7 BLD BRM"

    When the room is Null, building should also be Null.

    I thank you,

    Alice

    I forgot to mention, for the PL/SQL Code, because you are working with items in the selection list, the return values are different from the display on your LOV values, you must instead use the return values.

    Thank you

    Erick

  • Get and set the value to allow selected rolling Shuffle and facing page

    Hello world

    I work with the page and spread,

    For now, I want to value page spead shuffle and type of document.

    but I just find the function to get and set the value for the Document Pages allow Shuffle using the

    InterfacePtr < IPageLayoutPrefs > iPageLayoutPrefs (static_cast < IPageLayoutPrefs * > (: QueryPreferences (IID_IPAGELAYOUTPREFERENCES, iDocument)))

    It has no function to set and get the value of enable selected rolling Shuffle and facing page

    No one knows about it?

    I thank in advance

    There is no code for this example in the SDK or internet. Just understand and apply the concept.

    Find the code for the shuffle spread and together following spread shuffle...

    // Get active spread
    UIDRef GetActiveSpread() {
        UIDRef spreadRef = UIDRef::gNull;
    
        InterfacePtr layoutData(Utils()->QueryFrontLayoutData());
        if(layoutData) {
      spreadRef = layoutData->GetSpreadRef();
      }
    
      return spreadRef;
    }
    
    // Get spread shuffle of passed in spread
    bool16 GetSpreadShuffle(UIDRef& spreadRef) {
        InterfacePtr spread(spreadRef, UseDefaultIID());
        if(!spread)
      return kFalse;
    
      InterfacePtr iBoolData(spread, IID_IISLANDSPREAD);
        if(iBoolData) {
            return iBoolData->GetBool();
        }
    
        return kFalse;
    }
    
    // Set spread shuffle of passed in spread
    // @param bValue: kTrue = no shuffle, kFalse = allow shuffle
    ErrorCode SetSpreadShuffle(UIDRef spreadRef, bool16 bValue) {
        ErrorCode status = kFailure;
    
        InterfacePtr spreadCmd(CmdUtils::CreateCommand(kSetIslandSpreadCmdBoss));
        if(!spreadCmd)
            return status;
    
        spreadCmd->SetItemList(UIDList(spreadRef));
    
        InterfacePtr iBoolData(spreadCmd, UseDefaultIID());
        if(iBoolData) {
            iBoolData->Set(bValue);
        }
    
        status = CmdUtils::ProcessCommand(spreadCmd);
        return status;
    }
    
  • How can I creat photoshop filters and rendering the form of exe file

    Hello.. How are you all, I hope you fine...

    I want to know if I can creat photoshop filters and rendering the form of exe file...

    and thank you...

    If you really want to create a good filter/plugin and distribute it I can only recommend that you try the SDK Forum.

    Photoshop Plugin and companion App SDK

    Adobe Photoshop SDK | Adobe Developer Connection

  • Problems with slot-shaped table and set the values of column

    Hello

    I have a problem with a tabular presentation.

    I have two tables

    P_detail and table v_master

    columns of v_master:
    v_id
    v_Name
    v_info

    columns of p_detail:
    P_ID
    p_master_fk
    p_name
    p_info

    I want to have a tabular presentation where I can store permanent data retail values. That's why I want to keep the default main column join the detail columns.
    In SQL, I can do this with an outer join:

    SELECT m.v_name, d.p_master_fk, d.p_name, d.p_info
    OF v_master, p_detail
    WHERE v_id = p_master_fk (+)

    I get the lines that exist for the master data and can add values for the columns of detail. I removed the "add lines" because that makes no sense, because the amount lines are already offered at the opening of the tabular presentation.

    Now, I want to get/save the v_id (main table) in the p_master_fk column value

    How can I do this?

    Thank you and best regards,
    Matthias

    Hello

    One approach is to use a database instead trigger. If you define a database view using the query:

    SELECT m.v_id, m.v_name, d.p_id, d.p_master_fk, d.p_name, d.p_info
    OF v_master m, p_detail d
    WHERE v_id = p_master_fk (+)

    Then, create a trigger on the view that will insert in the detail table if d.p_id is null and update the secondary table if d.p_id is not null instead.

    The Apex tabular form is then based on the view (with identifiers like hidden columns) and all treatments multirow Apex should work without modification.

    Rod West

  • Creating a function and passing the value of the query

    I have what I thought, it was a pretty easy to resolve the situation: I want to concatenate two fields of the query, if the 2nd is not empty.

    I created a function:

    < name cfargument = "q1" value = "#query.q1 #" / > "
    < name cfargument = "q1a' value =' #query.q1a #" / > "

    < CFSET variables.myPunct = ":" > "
    < cfset variables. ResultVar = "" >

    < cfif QNE Trim (arguments.q1) "" > "".
    < cfset variables. ResultVar =' #arguments.q1 # ">"
    < / cfif >

    < cfif QNE Trim (arguments.q1a) "" > "".
    < cfif variable. ResultVar NEQ "" > "".
    < cfset variables. ResultVar ='#variables. ResultVar & variables.myPunct # ">"
    < / cfif >
    < cfset variables. ResultVar ='#variables. ResultVar & arguments.q1a # ">"
    < / cfif >
    < variable cfreturn. ResultVar >

    It's basically just the example they provide in online education, with the names have been changed.

    In the strip of the details of my report, I have an expression builder containing field: report.mytestfunction)

    When I run the present, I get: Q1 element is not defined in the ARGUMENTS.

    I tried this ninety different ways (literally). It seems very clear to me that the query.q1 (Incidentally, none of the results of the query) are NOT passed to the function. I tried to make the expression: report.mytestfunction (query.q1). I tried to create an input parameter.

    The documentation on this is ridiculously limited, given that the ability to implement conditional logic is entirely dependent on the 'function', I can say. I can in no way to get the function of interface with the query results. If the value fixed values in the service, rather than trying to use query variables, it shows very well.

    Any ideas?

    Have you tried to remove the attribute "value" of your cfargument tag? The way I see it, you should have:


    ... rest of function...

    And then you have to call it with: report.mytestfunction (query.q1, query.q1a)

  • Can I create a snapshot and replace it with an image (or link another picture than the current)?

    Based on http://forums.Adobe.com/thread/1308132?TSTART=0 I decided to add each question separately:

    Hello, I am very interested in buying Lightroom 5.2. I tried the RC that was missing today. Yet, I have several questions that I can't find really good conclusive answers, I'd like to get an answer before buying LR. Please do not write maybe like this or that (assumptions), because I don't want to start my entire workflow and then realize that I have to change all around, please reply, if you know for sure that something works and you are, preferably, using this method too.

    Can I create a snapshot and replace it with an image (or link another picture than the current photo)? Details: I made adjustments in iPhoto until now I want my (unpublished) masters, some RAWs JPEGs, create a snapshot and set the photo as the one to keep. If it is not possible, all of the recommendations (in addition the usual masters of backup and import changes).

    What I do is I have to assign some metadata down battery photo indicating of don't not to export the picture. Then, I use either a collection of smart to find the photo I want to and can not find the photos, I don't want and export all in the smart collection. or I use a Collection of post Smart, even once allows me to select only the pictures I want and not those I want.

    Of course you manually uncheck items you want to export, which work as well.

  • Create bookmark and set the Page Destination Script

    Greetings,

    I created a batch Script that will create children bookmarks and set the destination page.

    Bookmarks are listed in the script in the order in which they appear in ascending order.  (for example, Name1, name2, Name3, name4)

    However, once the script is run, the bookmarks are inserted in descending order. for example (Name3, name4, Name1, name2).

    Can someone advise please how do I get the script to create bookmarks in ascending order, as noted in the script?

    var bm =
    this.bookmarkRoot.createChild ("Name1", "this.pageNum = 0");
    this.bookmarkRoot.createChild ("Name2", "this.pageNum = 1");
    this.bookmarkRoot.createChild ("Name3", "this.pageNum = 2");
    this.bookmarkRoot.createChild ("Conjoint4", "this.pageNum = 3");

    var bm = this.bookmarkRoot.children [0];

    BM. Color = color.red;

    The script should also be changed to all bookmarks in red color.  The script for color bookmarks only works on the first bookmark.  Any intervention on changing the script for this would be most appreciated as well?

    Thank you.

    Use something like this:

    var bm;

    this.bookmarkRoot.createChild ("Bill Smith","this.pageNum = 0", 0);

    BM = this.bookmarkRoot.children [0];

    BM. Color = color.red;

    this.bookmarkRoot.createChild ("David Smith", "this.pageNum = 1", 1 ");

    BM = this.bookmarkRoot.children [1];

    BM. Color = color.red;

  • Is it possible to use advanced actions to set the value of the question?

    Hi - I am trying to develop a course of Captivate 4 and wish I could on slide enter advanced use of actions to check the value of a user variable, and if the variable is equal to x then set the value of the question (correct) 1. Is there a system variable, that I can use to define?

    This course is to download a package to an LMS (Moodle) SCORM.

    Ideas/suggestions would be greatly appreciated.

    Unfortunately, Captivate is not currently a way to manipulate SCORM score via advanced Actions and the user or System Variables.

    So that you could have OnSlideEnter check and set the value of a variable, you don't have a way to use this information to force sending a question slide.

  • How can I enter BIOS compaq610 screen and set the date, time

    How can I enter BIOS compaq610 screen and set the date, time

    Hello

    See Page 94 or Page 100 (according to what's relevant) of your & Maintenance Guide.

    Kind regards

    DP - K

  • Can any can give Live or online app Development on QNX IDE support and setting the goal as device Bb10. run the application etc?

    Can any can give Live or online app Development on QNX IDE support and setting the goal as device Bb10. run the application etc?

    The best way is to start basic: https://developer.blackberry.com/cascades/documentation/getting_started/index.html

  • Can I create an action to move the last page to the first?  I can only find how to manually drag the pages, and I need to make it simpler when there are a lot of pages.

    Can I create an action to move the last page to the first?  I can only find how to manually drag the pages, and I need to make it simpler when there are a lot of pages.

    Yes, you can do it using a script. This code should do the trick:

    this.movePage (this.numPages - 1, -1);

  • How focus a JavaFX Group properly and set the pivot (reverse) by using translations in 3D space?

    Description:

    I m referring to the Oracle tutorial http://docs.Oracle.com/JavaFX/2/transformations/jfxpub-transformations.htm using the transformations.zip source code, which is available for download on this page. I Don t understand why they Center the xylophone in space 3D like this and why they calculate the pivot (reverse) using translations. So they are creating a large number of groups, including rectangles, representing the xylophone, in addition to finally to a group called "cam".    

    class Cam extends Group {     
         Translate t  = new Translate();     
         Translate p  = new Translate();     
         Translate ip = new Translate();     
         Rotate rx = new Rotate();     
         { rx.setAxis(Rotate.X_AXIS); }     
         Rotate ry = new Rotate();     
         { ry.setAxis(Rotate.Y_AXIS); }     
         Rotate rz = new Rotate();     
         { rz.setAxis(Rotate.Z_AXIS); }     
         Scale s = new Scale();     
         public Cam() { 
              super(); getTransforms().addAll(t, p, rx, rz, ry, s, ip); 
         }     
    }    
    
    final Cam camOffset = new Cam();    
    final Cam cam = new Cam();    
    ...    
    camOffset.getChildren().add(cam);    
    ...    
    final Scene scene = new Scene(camOffset, 800, 600, true);    
    ... 
    

    The Group "cam" is added to another group called "camOffset", which is added to the 'scene' as root the node.

    Until there , everything is understandable to me, but there is a method, called "frameCam (.)" which calls 4 other methods: ""

    public void setCamOffset(final Cam camOffset, final Scene scene) {         
         double width = scene.getWidth();         
         double height = scene.getHeight();         
         camOffset.t.setX(width/2.0);         
         camOffset.t.setY(height/2.0);     
    }    
    
    //=========================================================================    
    // setCamScale    
    //=========================================================================    
    
    public void setCamScale(final Cam cam, final Scene scene) {        
         final Bounds bounds = cam.getBoundsInLocal();         
         final double pivotX = bounds.getMinX() + bounds.getWidth()/2;         
         final double pivotY = bounds.getMinY() + bounds.getHeight()/2;         
         final double pivotZ = bounds.getMinZ() + bounds.getDepth()/2;         
         double width = scene.getWidth();         
         double height = scene.getHeight();         
         double scaleFactor = 1.0;         
         double scaleFactorY = 1.0;         
         double scaleFactorX = 1.0;         
    if (bounds.getWidth() > 0.0001) {            
         scaleFactorX = width / bounds.getWidth(); // / 2.0;        
    }        
    if (bounds.getHeight() > 0.0001) {            
         scaleFactorY = height / bounds.getHeight(); //  / 1.5;         
    }        
    if (scaleFactorX > scaleFactorY) {            
         scaleFactor = scaleFactorY;         
    } else {            
         scaleFactor = scaleFactorX;         
    }        
         cam.s.setX(scaleFactor);         
         cam.s.setY(scaleFactor);         
         cam.s.setZ(scaleFactor);     
    }    
    
    //=========================================================================    
    // setCamPivot    
    //=========================================================================    
    
    public void setCamPivot(final Cam cam) {        
         final Bounds bounds = cam.getBoundsInLocal();         
         final double pivotX = bounds.getMinX() + bounds.getWidth()/2;         
         final double pivotY = bounds.getMinY() + bounds.getHeight()/2;        
        final double pivotZ = bounds.getMinZ() + bounds.getDepth()/2;         
    
    //*1*        
         cam.p.setX(pivotX);         
         cam.p.setY(pivotY);         
         cam.p.setZ(pivotZ);         
    //*1*        
    
    //*2*        
         cam.ip.setX(-pivotX);         
         cam.ip.setY(-pivotY);         
         cam.ip.setZ(-pivotZ);         
    //*2*     }    
    
    //=========================================================================    
    // setCamTranslate    
    //=========================================================================    
    
    public void setCamTranslate(final Cam cam) {        
         final Bounds bounds = cam.getBoundsInLocal();         
         final double pivotX = bounds.getMinX() + bounds.getWidth()/2;         
         final double pivotY = bounds.getMinY() + bounds.getHeight()/2;         
         cam.t.setX(-pivotX);         
         cam.t.setY(-pivotY);     
    } 
    

    If the method ' setCamScale (...) 'is understandable,' setCamOffset (...) ' puts the root node ('camOffset') in the center of the screen, but I Don t understand the 2 following methods at all. Of course, the child ("cam") is not centered, by putting just the root node ('camOffset') in the center of the screen, but how they focus the xylophone / "cam" and set the pivot, using translations:

    Questions:

    1. Why they use 3 different translations (', 'ip', 'p')?
    2. Referring to ' setCamPivot (...) ': Why they are the first translation of 'cam.p' to "pivotX", 'pivotY' and 'pivotZ' and then 'cam.ip' to '-pivotX', '-pivotY' and '-pivotZ' (marked in the source code with * 1 * and * 2 *)? Should he not just put the Group at his position, where it has been positioned before, as if the method has never been called? That would be my guess, because I expect that an object is placed in the same position as before, if I first move with the values X, Y, Z and then return with the same values - X, - Y, - Z in the opposite direction.
    3. Even with the method ' setCamTranslate (...) ' ': Why use another translation "cam.t", moving the Group ("cam") with the same values "-pivotX', '-pivotY' (and not '-pivotZ'), which they used in the"setCamPivot (...) method `?

    Annotations:

    Of course it works, the xylophone is located in the center of the screen and could turn perfectly, without change of rotation point / pivot point, but I Don t understand how they did it. I read everything about layoutBound, boundsInLocal, boundsInParent, blogs about page layout and page layout goes into javaFX https://blogs.oracle.com/jfxprg/entry/the_peculiarities_of_javafx_layout and http://amyfowlersblog.wordpress.com/2011/06/02/javafx2-0-layout-a-class-tour/ and finally a large number of questions to stackoverflow, but I still Don t understand the meaning behind the methods stated.

    Before the call of ' frameCam (...) ', they ask:

    double halfSceneWidth = 375;  // scene.getWidth()/2.0;     
    double halfSceneHeight = 275;  // scene.getHeight()/2.0;    
    cam.p.setX(halfSceneWidth);    
    cam.ip.setX(-halfSceneWidth);    
    cam.p.setY(halfSceneHeight);    
    cam.ip.setY(-halfSceneHeight); 
    

    I deleted these lines, because it doesn't change anything.

    The base in place, is that there are three defined different rotations, one around each axis. Of course, these could be combined into a single rotation, but doing so would make the geometry in the mouse dragging very complex managers. As it is, the degree of rotation around each axis can be calculated and changed independently.

    In general, the rotations are defined by an angle, an axis and a (pivot) point. The axis is a 3D vector and goes through the pivot point; the rotation is around this axis through that point.

    In the configuration in the example, the pivot of each of the individual rotations is set to the default (0,0,0). Because we really want the rotation to be around the center of the group, not the original, the Group translates first point appropriate pivot (ip), the rotations are applied then (around (0,0,0) after translation by ip), then the group is reflected in its location of origin (p). These operations are not commutative, yes show ip, then the rotation, then p is not the same as when you run ip, then p, then the rotation (in the second, ip and p would cancel and rotation would be about (0,0,0) instead of around the Center).

    For good measure, there is a scale, that is also applied after ip (so that scaling occurs from the Center, not the original) and then a final translation.

    The final effect is that there is a lot of transformations that can be controlled independently. There is a scale (s), a rotation about each axis (rx, ry, rz), and a translation (t). The p in translations and its inverse ip are just "housekeeping" to ensure that rotation and scaling are done from the center of the screen, instead of (0,0,0).

    So:

    1. Why they use 3 different translations (', 'ip', 'p')?

    p and ip are translations for the rotation and scaling are done from the Center and not to the origin. t is a general translation, the user sees.

    Referring to ' setCamPivot (...) ': Why they are the first translation of 'cam.p' to "pivotX", 'pivotY' and 'pivotZ' and then 'cam.ip' to '-pivotX', '-pivotY' and '-pivotZ' (marked in the source code with * 1 * and * 2 *)? Should he not just put the Group at his position, where it has been positioned before, as if the method has never been called?

    He puts the group to its original position, but other changes are between p and ip. These transformations behave differently (in a planned way) because the group is translated when they are applied.

    Even with the method ' setCamTranslate (...) ' ': Why use another translation "cam.t", moving the Group ("cam") with the same values "-pivotX', '-pivotY' (and not '-pivotZ'), which they used in the"setCamPivot (...) method `?

    The t values are changed in the mouse Manager (with alt-middle mouse button-drag, which I can't test actually using my trackpad...). As you have noted, the effect of p and IP translation cancel out, so we end up with t, which can be changed by the user. They could have combined t and p a single transformation, but updated since the mouse Manager would have been more delicate, and the intent of the code would be less clear.

  • Can declaratively set the value of some attributes depend on an attribute in a row of VO?

    Hi, experts.

    In jdev 11.1.2.3,.

    Can declaratively set the value of some attributes depend on an attribute in a row of VO?

    For example, there is a VO (id, salt boolean, integer status, entire IsValid), how to set status=-1,IsValid=-1 when salt is checked (selected)?

    I tried:

    Method A:

    1 set the status depends on saltand the default attribute value:

    If (salt is true)

    Returns - 1

    on the other

    {

    If (salt is false)

    Returns 0

    on the other

    Returns a null value

    }

    2. set IsValid dependent statusand attributes by default as: status.

    3. set all of these three attributes can be changed to always.

    If the parameter above may work, then apparently it's much simpler to write Java code.

    Unfortunately, he is unable to work the way you want.

    There is some complex another declaratively to do:

    Method B:

    1. create a selVO (id, booleanValue1 boolean, integer numberValue1, string stringValue1) with static values:

    (1, false, 0, "" false for salt: not selected ' ");

    (2, true,-1, "" the true value of salt: selected ' ");

    2. put selVO as Data Source list for the list of the salt value and return values from the list:

    Salt-> booleanValue1,

    Status-> numberValue1,

    IsValid-> numberValue1.

    But this alternative way has a few weaks a fortiori more complex:

    Advice from the interface user of salt can not defined by default list Type "CheckBox".

    Cannot, therefore, method A feasible?


    Thank you!

    BAO

    Hello Bao,

    You can write THE Expression value of Field2

    #{bindings. Field1.inputValue == 'Y '? 1:-1}

    (Auto submit True on Field1

    Field1 Field2 on partial trigger)

    Also, you can write logic in VORowimpl Set accessor methods.

    Thank you

    Jeet

Maybe you are looking for