Replace a string variable value (replace '&' in the string at 26%)

Hi all... I have a question... .we form a url that has a field of string with "&" in its value example: ST & G... the url is slightest mistake out. However, if we replace this value by ST % 26G it works as expected. I tried to replace ('ST & G', '&') it asks to enter the value of substitution and exit ST not what I need... I need the output to % 26G ST. Please suggest.

There is an API for this task: UTL_URL

However, the parameter that handles the reserved characters unescaping is Boolean data type and is false by default, so you can call it only of PL/SQL:

SQL> begin
  2    dbms_output.put_line( utl_url.escape('ST&G', true) );
  3  end;
  4  /

ST%26G

PL/SQL procedure successfully completed.

Tags: Database

Similar Questions

  • Pass a variable value set to the selector to the Listview

    This was probably picked several times on the forum, but I'm going crazy with research and try to do things with my code.

    Everything I'm doing is to expose the variable rssmobileEnabled defined in the SELECTOR, so that I can go and test it in my LISTVIEW onSelectedValueChanged IF statement, according to the code below.

    I did the variable in "BOLD" below to indicate. This must be a simple solution, after all how it can be difficult to just define a global variable...

    The SELECTOR code:

     Picker {
        id: picker
        title: "Select Feed"
        dataModel: XmlDataModel {
         source: "models/blackberry.xml"
        }
    
          pickerItemComponents: [
              PickerItemComponent {
                    type: "rsslink"
                    content: Container {
                    layout: DockLayout {
                    }
                         Label {
                             multiline: false
                             text: pickerItemData.text
                             textStyle {
                                  base: SystemDefaults.TextStyles.SubtitleText
                             }
                          }
                      }
                 }
            ]
    
       onSelectedValueChanged: {
           var rsslinktext = (dataModel.data([ 0, picker.selectedIndex(0) ]).text);
           var rsslink = (dataModel.data([ 0, picker.selectedIndex(0) ]).rssSource);
           var rsslinkquery = (dataModel.data([ 0, picker.selectedIndex(0) ]).rssQuery);
           var rssmobileEnabled = (dataModel.data([ 0, picker.selectedIndex(0)]).mobileEnabled);
    
            //Load the selected feed
            dataSource.load();
       }
    } // Picker
    

    Code of the LISTVIEW:

                ListView {
                    id: myListView
    
                    // Associate the list view with the data model that's defined in the
                    // attachedObjects list
                    dataModel: dataModellist
                    layout: StackListLayout {}
                    listItemComponents: [
                        ListItemComponent {
                            id: header
                            type: "header" //"item"
    
                            //custom components used instead of standardlistitem
                            Container {
                                Label {
                                    id: emptytextheader
                                    text: ""
                                }
                            }
                        },
                        ListItemComponent {
                            id: item
                            type: "item" //"description"
    
                            Container {
                                layout: DockLayout {}
                                //custom components used instead of standardlistitem
    
                                Container {
                                    id: itemdetails
                                    Label {
                                        id: title
                                        text: ListItemData.title
                                        //textStyle.fontWeight: FontWeight.Bold
                                        multiline: true
                                        textStyle.color: Color.Cyan
                                    }
                                    Label {
                                        id: pubdate
                                        text: ListItemData.pubDate
                                        textStyle.color: Color.create("#ff00c200")
                                        textStyle.fontSize: FontSize.XSmall
                                    }
                                    Label {
                                        id: description
                                        text: ListItemData.description
                                        textStyle.fontSize: FontSize.Small
                                        multiline: true
                                        textStyle.color: Color.Yellow
                                        maxHeight: 130.0
                                    }
                                }
                            }
                        }
                    ]
    
                    onTriggered: {
                        var feedItem = dataModel.data(indexPath);
                        var page = detailsPage.createObject();
    
                        if (rssmobileEnabled == "y")
                            {
                                .....
                            }
                    }
                }
    

    Hello

    "var rssMobileEnabled" declares a local variable, is not available in onTriggered.

    Declare it as a property instead:

    TopLevelItem
    {
       property bool rssMobileEnabled
       (or 'property string' if it's a character)
    

    reference it without prefix "var":

    rssMobileEnabled =...

    You can also declare the property on another element (not necessarily higher level) and reference it by id:

    elementId.rssMobileEnabled

  • The Variable value based on the results of SQL query

    With the help of OBIEE 11.1

    Is it possible to set the value of a variable presentation of the results of a SQL statement?

    Scenario:

    I have 2 topics.

    SubjectArea1

    Text1

    Date1

    SubjectArea2

    Field1

    Field2

    UpdateDate

    I have an analysis that uses only the SubjectArea2.

    Using a dashboard quickly, the user must be able to select Text1 in the other topic area (SubjectArea1).

    Assuming that selection will be stored in a variable of presentation (SelectedText),

    The filter in the analysis should be something like

    Upper UpdateDate to @{SelectedDate}

    How can I set a variable (SelectedDate) using a SQL statement?

    Something like this:

    SELECT "Date1" TO "SubjectArea1" WHERE "Text1" = @{SelectedText}

    So the command prompt text selection should give a date that is used to filter the second review?

    If so:

    The prompt on SA1.textCol

    hidden analysis who is invited on SA1.texCol has SA1.dateCol in the criteria

    Analysis SA2.dateCol is filetered on basis of the results of another analysis (any value analysis hidden SA1.dateCol)

  • Required emergency aid: restore the value assigned to the previous session variable

    Restore the variable value assigned to the previous session.

    I'm looking to restore the value assigned to a variable in the previous session. I learned that I don't put any value in the field of the value of the variables, captivate will automatically restore the value assigned to the variable in the previous session. Captivate stores interrupt the data value.

    Also, I could find a good example with source and the file published by Jim Leichliter. However, if it is downloaded the file published to Moodle, it works fine. But if it is open the file source Captivate 5 publish without making any changes and transfer to Moodle. It does not work.

    Any thoughts or ideas are appreciated.

    This should work for both.

  • replacement of the same value in a string variable values

    If I have a string:

    "%s is %s that I'm talking about."

    and - I want to replace the instances with DIFFERENT values %s... What is the best way to do it.

    I thought of her analysis in separate using substr and instr chains, but I don't know if that's an exaggeration or not.

    Replace is ideal but - it replaces all occurrences of if - you can indicate just replace the first occurrence of a value, and the second with one another (i.e. If the result after replacement of the string above was supposed to be "it's the chain that I'm talking about"

    Any help is appreciated.

    Thank you

    Hello

    wtlshiers wrote:
    If I have a string:

    "%s is %s that I'm talking about."

    and - I want to replace the instances with DIFFERENT values %s... What is the best way to do it.

    Whenever you have any questions, please post CREATE TABLE and INSERT statements for some examples of data and the results desired from these data.
    Explain how you get these results from these data.
    Always say what version of Oracle you are using (for example, 11.2.0.3.0).
    See the FAQ forum {message identifier: = 9360002}

    I thought of her analysis in separate using substr and instr chains, but I don't know if that's an exaggeration or not.

    Depending on your needs, you may need to do this.

    Replace is ideal but - it replaces all occurrences of if - you can indicate just replace the first occurrence of a value, and the second with one another (i.e. If the result after replacement of the string above was supposed to be "it's the chain that I'm talking about"

    As you say, REPLACE replaces all occurrences. There is no way to say (for example) to change only the first.
    REGEXP_REPLACE, is much more flexible. There is no option for giving a specific occurrence, but you won't even have this feature. You want maybe just something like

    REGEXP_REPLACE ( '%s is the %s I am referring to'
                , '(.*)%s(.*)%s(.*)'
                , '\1This\2string\3'
                )
    

    Depends on your data and your needs.
    Are the new values (e.g. 'This' and 'chain') fixed, or if they can change from one line to the other?
    You will always have 2 (or certain known number) of ' %s in the original string?
    '%' Always report something that needs to be replaced? If not, how can you tell when he does and when it doesn't?
    Of ' always come right after "%"? If this is not the case, what are the possibilities, and what the different characters?

  • replace all the ',' inside the string

    I have a long string and pl/SQL, I want to replace all the ',' with ', null, '.

    Can I use replace function as:
    prepare_insert: = replace (prepare_insert, ', ', ', null,');

    but it will not replace Prime ',' not all. How can I replace all?

    It works fine in your case also.

    ',' replace will replace the first ',' to ', null, ', and then he would find the second ',' and to replace it ', null,'.

    select replace(',,,,',',,',',null,') from dual;
    
    ,null,,null,
    

    There is no combination of 2nd & 3rd "," for the replacement.
    but only one, 1st & 2nd, 3rd & 4th. That's all.

    Doing twice replace() will give you what you want:

    select replace(replace(',,,,',',,',',null,') ,',,',',null,') from dual;
    
    ,null,null,null,
    

    Published by: PhoenixBai on August 24, 2010 23:43

  • Local variables are comparable to the value property of a control or indicator?

    I use the buttons / switches mechanical locking action, event structures and local variables to track the status of my switches.  I used local variables with indicators, too.  Now I see that this could be done via the node property of a switch or an indicator.  Should I use the nodes property instead of local variables?  Should I use "switch" mechanical action and control the State of the control buttons / switches?  I used a mechanical locking action because it automatically reset when it is read, but who pushed me in the use of local variables.

    I know the property values to adapt the data flow model, while local variables might be placed in a sequence structure to ensure the order of execution.

    I just don't want my program all except if it is a correct approach.

    Thank you

    DH

    Dark Hollow says:

    Well, I'm changing the properties of user interface in my state machine.  For example, when you push a button to START the TEST, I want to disable and gray this button and activate the button to STOP the TEST.

    No engineer too much. In this case, you can use a single button and label the FALSE case a 'start Test' and the REAL case as TEST 'STOP '. No additional code needed at all. At the same time, you only use the half-Panel space! (and 10% space diagram!)

    Dark Hollow says:

    Another example... I have a couple of dozens of LEDs on the front panel to show the TEST SUCCEEDED.  If I have the wiring all of them, my state machine diagram gets messy.

    Define disorder! In my mind, code is not held together by wire is much messier because it is impossible to determine the order of execution and so program logic. A thread is a small 1 d object. A property node is a significant 2D object. 20 wires are much less messy than 20 knots of property, especially given that each property nodes still hanging by a thread in one way or another!

    In order to reduce the number of threads, use the most appropriate data structures. Instead of a few dozen sighted use a single Bay of LED. A single wire! Keep the table in a shift register and update alone LED as necessary by using "replace subset of the table".

  • replace only the first and the second comma by TAB in the apex using using jquery

    All,

    I'm generating models of string in the text box in my apex as page == > 23232,445454, «454545,7878,988978, 3r3e»
    and I want to replace only the first and the second comma with TABS so I get like == > 23232 445454 «454545,7878,988978, 3r3e»

    It should run with the jquery code when I click my button?

    any help on this please?

    Thank you.

    How does this update function:

    function replaceUpToN(original, search, replaceWith, maxOccurence){
    
        var NEW_LINE = '\n';
    
        var lines = original.split(NEW_LINE);
    
        $.each(lines, function(index, value){
            var idx = 0;
            lines[index] = value.replace(search, function(match, pos, original){
                idx++;
                return idx <= maxOccurence ? replaceWith : match;
            });
    
        });
    
        return lines.join(NEW_LINE);
    
    }
    
  • How to swap two values without using the third variable using the procedure

    How to exchange the two values without using the third variable using the procedure?

    In a procedure using two mode we pass two values A = x and B = y, and let us pass parameters to receive the output has A = y and B = x without using the third variable

    Published by: Millar on August 19, 2012 11:23

    Your question doesn't seem wise. As written, there is no reason to a third variable, just

    CREATE OR REPLACE PROCEDURE(
      x IN number,
      y IN number,
      a OUT number,
      b OUT number
    )
    AS
    BEGIN
      a := y;
      b := x;
    END;
    

    If it's an interview question, I suspect that the intention was that you had two settings IN OUT and you wanted to swap the values without the help of a third variable.

    Justin

  • seriously damaged 6s - Apple iPhone screen will replace just the screen?

    So, I got a new 64 GB iPhone 6 in September last year because Verizon forced me to upgrade my old 5 c.  I had initially purchased AppleCare + under the pretext that the policy CA + had not changed and that if damage were to occur on the screen that they would replace the screen for free.  I bought a case for the phone and before the case had arrived, I had already managed to break (we're talking a timespan 2 day of all that happens, unfortunately), and when I called to make the appointment to take in what I thought would be a free replacement, they informed me of the new fees of $79.  Well, I was pretty mad because I had already paid $100 for AC + and then pay an additional $79 seemed ridiculous because they were customer support without AC $109 + for a new screen.  The math doesn't add up, so I got a partial refund of my AC + and never got the screen fixed and lived with the crack.  Well long story short the screen is now completely broken through my 11 month old and I can't use it at all - you can barely see through the glass falling pieces, and the screen itself does not.  Can someone tell me if yes or not it simply a replacement of the screen or I have to buy a phone brand new?  And if she's going to be the last, I'm not keep the phone, I am trading it back in because we are switch from Verizon to AT & T - I can take it for a 3rd rep party to get a new screen and still get trade in value of the phone?  AT & T is simply that it is y no cracks in display political and joins the local cell phone repair, so I guess that Yes on the second part of this question.

    As long as there is no additional damage on the phone itself you can get the screen replaced but if the case is damaged, you will need to use your franchise under AppleCare + as an alternative to the iPhone.

  • Satellite P755 - 11G: Win 7 64 bit - cannot activate BT after replacement of the module

    Hello

    On my laptop Satellite P755, I had to replace the Wifi/Bluetooth PCI Express Mini card because the original Atheros was broken and was no longer working.

    So I decided to buy a new Intel® Wireless-Dualband-AC 7260 card to replace.
    Has successfully replaced by itself.
    WiFi now works again.

    Now, I'm dealing to get BT running. With the old Atheros card I could activate BT by pressing FN + F8 and choose Bluetooth from the menu of flashcard on top of the screen.

    After the replacement of the F8 full option in flash cards had disappeared.
    I managed to solve the problem for the WiFi by adding the ID of the new material of the card Intel (PCI VEN_8086 & DEV_08B1 & SUBSYS_40708086) in the registry in the following locations:

    HKEY_LOCAL_MACHINE\SOFTWARE\TOSHIBA\ConfigFree--> InternalDevice176
    Hotkey HKEY_LOCAL_MACHINE\SOFTWARE\TOSHIBA\Wireless--> DevID_SupportRL175
    HKEY_LOCAL_MACHINE\SOFTWARE\TOSHIBA\WirelessAPL\BT WLANDP--> DevID_SupportRL176
    HKEY_LOCAL_MACHINE\SOFTWARE\TOSHIBA\WirelessDevice ID--> DevID_SupportRL176

    Now FN + F8 works very well for the WiFi, flash cards menu appeared again.
    But there is still no option to activate Bluetooth.

    Addition of the BT hardware in the registry (same locations as the WiFI) ID does not help.
    I can't get the point how the flash cards software manages to activate the bluetooth normally.

    Does anyone have an idea what it takes to get the Bluetooth in the menu flash cards?

    My system:
    Toshiba P755 - 11G
    Windows 7 64 bit

    See you soon,.
    Alex

    Hello

    You said that the original WLan module was to Atheros.
    As far as I know the module Atheros WLan additional needs for the installation of the filter for the Atheros BT driver package in order to use and activate Bluetooth.

    In the case of modules WLan Intel such package of filter is not necessary.

    I guess the Atheros BT filter driver package is always installed on this laptop and I think this might be the reason why the BT can not be activated properly.

    However, I recommend you to uninstall the filter BT mentioned driver package as well as Toshiba BT stack, driver Atheros WLan and the Toshiba value added package, and the Flash Cards Support utility. Clean the system using the CCleaner tool.

    Then install the Intel driver that would control the new Intel WLan card.
    Install the Toshiba BT stack and restart the device. Now follow with the installation of the Toshiba added value package and the Flash Cards Support utility. Reboot once again and check if you can use FN + F8 to activate WiFi and BT

  • Open to create problems replace with the recording of file templates

    Hello, I had a problem with the function open/replace/create. Could you please specify each function, how it works? As you can see in my file, I try to record in the specified path. The values appear in the text file, but when I change some values in the course of data, it replaces the old value, it has been. I want to have all the data in a single file until I close and open another file for the operation.

    How can I do?

    Thank you

    I think that its programming in-> file-> advanced file io

  • The replacement of the PK in the process to insert the form after this

    Hello

    I'm quite new in the world of the APEX and I'm having a problem I want to please appreciate any input on... I use APEX 5.0.

    I have a form page to insert (P2) to a new section in my table of queries (with PK of 'ID' column). The billing ID (P2_ID) page is hidden (not sure if that makes a difference)... I then have a process after submit type "Send E-mail" and I want to include information about the new entry in the email.

    Each substitution that I do, as & P2_Description, & P2_Requester. etc works fine, but the replacement of the ID (PK - & P2_ID) does any work. I presume it is because at that time, the recording has not intervened in the table, and the sequence/trigger has not generated the following value?

    How can I please pass this value to the process/electronic mail? I tried to use P3_ID (P3 being the form of update page) and it works, but it always sends the previous entry.

    I'm sure that it must be simple, but as I said I'm pretty new to APEX and could not understand how! Is it possible to have this identification number to pre-fill the next value in the table field, before the present? And what happens if someone else creates a new entry at the same time?

    Thanks in advance

    George

    Hi George,.

    User807933-Oracle wrote:

    Thanks a lot for your reply Jitendra,.

    Do I have to use a different page for "Return Key in Item" element other than P2_ID?

    Under the settings for the DML processes, I have:

    Primary key column: ID

    Main key: P2_ID

    and added P2_ID to return key in the element. Support operations is just "Insert..."

    However, it is always empty when it arrives on the enamel. My process to send the e-mail message must be in a different area? I'm currently after shows. Maybe add to the treatment area, after the DML process?

    Thanks again!

    How are you referring to the item values in the process of your e-mail?

    your mail sending process should be after the insertion process.

    Kind regards

    Jitendra

  • How can I make a long list of search - replace only the master

    Hello world

    I had this script:

    //---------------------------------------------------------------------------------------- -------------------------------

    myDocuments var = app.documents.everyItem ();
    var myLayers = myDocuments.layers.everyItem ();

    Locked text on master blocks spreads are not affected.
    If you want to unblock, please add something like this:

    Unlock all elements of each document page on is spreading and Captain spreads (optional):
    myDocuments.pageItems.everyItem (.locked = false);

    var myPageItemsOnNormalSpreads = myDocuments.spreads.everyItem ().pageItems.everyItem ();

    Unlock the layers (optional)
    myLayers.locked = false;

    Lock all elements of page level first on normal spreads
    This leaves the elements on the page on unlocked master spreads:
    myPageItemsOnNormalSpreads.locked = true;

    Now for the GREP part:
    app.findChangeGrepOptions.includeMasterPages = true;
    app.findGrepPreferences = changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = "\\b20\\d+\\b";

    Research on "all open document" level
    Which returns an array of arrays:
    var myTarget = myDocuments.findGrep ();

    Flattening of myTarget Bay:
    var flattenedFoundArray = [];

    for (var n = 0; n < myTarget.length; n ++) {}
    flattenedFoundArray = flattenedFoundArray.concat (myTarget [n]);
    };

    Change the content of the texts found in flat table:
    for (var n = flattenedFoundArray.length - 1; n > = 0; n-) {}
    flattenedFoundArray [n] .silence = String (Number(flattenedFoundArray[n].contents) + 1);
    };

    Unlock all objects on normal spreads:
    myPageItemsOnNormalSpreads.locked = false;

    Reset search GREP and edit the prefs:
    app.findGrepPreferences = changeGrepPreferences = null;

    //---------------------------------------------------------------------------------------- -------------------------------

    made by Uwe

    I change in this, to make a multi elements of search - replace only the master

    //==============================================================================

    myDocuments var = app.documents.everyItem ();
    var myLayers = myDocuments.layers.everyItem ();

    Locked text spreads masters frameworks are not affected.
    If you want to unblock, please add something like this:

    Unlock all items page of each document of spreads and master spreads (optional):
    myDocuments.pageItems.everyItem (.locked = false);

    var myPageItemsOnNormalSpreads = myDocuments.spreads.everyItem ().pageItems.everyItem ();

    Unlock the layers (optional)
    myLayers.locked = false;

    Lock all elements of page level first on normal spreads
    This leaves the elements on the page on unlocked master spreads:
    myPageItemsOnNormalSpreads.locked = true;

    Now for the GREP part:
    app.findChangeGrepOptions.includeMasterPages = true;
    app.findGrepPreferences = changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = "USA";

    Research on "all open document" level
    Which returns an array of arrays:
    var myTarget = myDocuments.findGrep ();

    Flattening of myTarget Bay:
    var flattenedFoundArray = [];

    for (var n = 0; n < myTarget.length; n ++) {}
    flattenedFoundArray = flattenedFoundArray.concat (myTarget [n]);
    };

    Change the content of the texts found in flat table:
    for (var n = flattenedFoundArray.length - 1; n > = 0; n-) {}
    flattenedFoundArray [n] .silence = "CHINA";
    };

    Unlock all objects on normal spreads:
    myPageItemsOnNormalSpreads.locked = false;

    Reset search GREP and edit the prefs:
    app.findGrepPreferences = changeGrepPreferences = null;


    //---------------------------------------------------------------------------------------- -------------------------------

    myDocuments var = app.documents.everyItem ();
    var myLayers = myDocuments.layers.everyItem ();

    Locked text spreads masters frameworks are not affected.
    If you want to unblock, please add something like this:

    Unlock all items page of each document of spreads and master spreads (optional):
    myDocuments.pageItems.everyItem (.locked = false);

    var myPageItemsOnNormalSpreads = myDocuments.spreads.everyItem ().pageItems.everyItem ();

    Unlock the layers (optional)
    myLayers.locked = false;

    Lock all elements of page level first on normal spreads
    This leaves the elements on the page on unlocked master spreads:
    myPageItemsOnNormalSpreads.locked = true;

    Now for the GREP part:
    app.findChangeGrepOptions.includeMasterPages = true;
    app.findGrepPreferences = changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = 'Washington DC';

    Research on "all open document" level
    Which returns an array of arrays:
    var myTarget = myDocuments.findGrep ();

    Flattening of myTarget Bay:
    var flattenedFoundArray = [];

    for (var n = 0; n < myTarget.length; n ++) {}
    flattenedFoundArray = flattenedFoundArray.concat (myTarget [n]);
    };

    Change the content of the texts found in flat table:
    for (var n = flattenedFoundArray.length - 1; n > = 0; n-) {}
    flattenedFoundArray [n] .silence = "Beijing."
    };

    Unlock all objects on normal spreads:
    myPageItemsOnNormalSpreads.locked = false;

    Reset search GREP and edit the prefs:
    app.findGrepPreferences = changeGrepPreferences = null;


    //===============================================================================

    only what I can do is to repeat and repeat again

    is this another perfect solution to do?

    Thank you

    Teetan

    Try this,

    findChange("USA", "CHINA");
    findChange("Washington DC", "Beijing");
    
    function findChange (findWhat, changeContent){
        var myDocuments = app.documents.everyItem();
        var myLayers = myDocuments.layers.everyItem();
        //Locked text frames on master spreads are not touched.
        //If you want to unlock them you have to add something like this:
        //Unlock ALL page items in every document on spreads and master spreads (optional):
        myDocuments.pageItems.everyItem().locked = false;
        var myPageItemsOnNormalSpreads = myDocuments.spreads.everyItem().pageItems.everyItem();
        //Unlock the layers (optional)
        myLayers.locked = false;
        //Lock all first level page items on normal spreads
        //That leaves the page items on master spreads unlocked:
        myPageItemsOnNormalSpreads.locked = true;
        //Now for the GREP part:
        app.findChangeGrepOptions.includeMasterPages = true;
        app.findGrepPreferences = changeGrepPreferences = null;
        if(findWhat)app.findGrepPreferences.findWhat = findWhat;
        //Do the search on "all open document" level
        //That will return an array of arrays:
        var myTarget = myDocuments.findGrep();
        //Flattening the myTarget array:
        var flattenedFoundArray = [];
        for(var n=0;n=0;n--){
            if(changeContent)flattenedFoundArray[n].contents = changeContent;
            };
        //Unlock all objects on normal spreads:
        myPageItemsOnNormalSpreads.locked = false;
        //Reset GREP find and change prefs:
        app.findGrepPreferences = changeGrepPreferences = null;
    }
    

    Vandy

  • How to pass the value of the variable record type in the procedure

    Hai All

    My Question is

    I have a table named Emp and the structure

    ID Varchar2 (25)

    Name varchar2 (25)

    Number of salary


    And now, I created a folder named Rec_Emp

    Like this

    Type Rec_emp is made
    (Rec_Id varchar2 (25),)
    rec_name varchar2 (25).
    Number of Rec_salary);
    rec_emp emp_record;


    I created a SQL type

    Now how to pass the value type in the procedure


    Thanks and greetings
    SrikkanthM

    You are looking for something like this

    create table my_emp (id integer, name varchar2(100), sal number)
    /
    create type my_emp_obj as object(id integer, name varchar2(100), sal number)
    /
    create or replace procedure insert_into_my_emp(pEmp_Obj in my_emp_obj)
    as
    begin
      insert into my_emp (id, name, sal) values(pEmp_obj.id, pEmp_Obj.name, pEmp_obj.sal);
    end;
    /
    begin
      insert_into_my_emp(my_emp_obj(1,'karthick',1000));
    end;
    /
    select * from my_emp
    /
    
  • The one year warranty for MBP 13 "Retina display covers the replacement of the screen

    The warranty of one year for MBP 13 "Retina display covers replacing the screen?

    "Materials or manufacturing defects.

    Technicians Bar genius most do not think that the glass may break spontaneously, and so they assign screens unless broken not latent, bad manipulation. You are likely on the hook for the replacement of the screen of"Pocket".

Maybe you are looking for