If we then use the DML in function, this function can be used inside s

If we use the DML statement in a function, then this function can be used within the select query or any DML query?
select f from t2;

I think that you wanted to interrogate t1.

This works if the function is a stand-alone transaction:

create or replace function f return number
is
PRAGMA AUTONOMOUS_TRANSACTION;
begin
    update t1 set c=2;
    commit;
    return 1;
end;
/ 

select f from t1

But as Billy, why would you do this way DML. And it's not stand-alone procedures should be used.

A response to an interview question, but nothing wrong with it.

Tags: Database

Similar Questions

  • When I click on a link in a new tab is no longer open in Firefox. Now, I have to copy the link, manually open a tab and then paste the link. Simply, this started happening a few days ago and I haven't changed anything in my settings. Can anyone help?

    When I click on a link in a new tab is no longer open in Firefox. Now, I have to copy the link, manually open a tab and then paste the link. Simply, this started happening a few days ago and I haven't changed anything in my settings. Can anyone help? Thank you

    This problem may be caused by an extension that is not working properly.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • PS2 Keyboard (s) do not work then in the BIOS of 8148-22U. Can not set anything in the BIOS!

    Ref: ThinkCentre A50 8148-22U.

     

    PS2 Keyboard (s) only then work in BIOS, safe MODE, or RESTORE the DEFAULT settings. I can't configure anything in the BIOS, and I have no video after the start. The arrow keys, touch, touch ESC are all dead!

    I always try to get the video display is working again. He has only a "black screen" after starting up just after the Windows logo screen.

    Now, even though I see the BIOS shows, none of the keys on the keyboard works. Therefore, I can't change the video settings, get the system to restore everything back to the "default".

    I tried two different PS2-style keyboards. Neither one is recognized for some reason any.

    Is there a FLOPPY DISK UTILITY so that I can buy that could I want to boot from it, without going by whatever problems that prevent me from this computer to the factory settings reset?

    Please, is - can anyone answer this question?

    Thank you

    Larry

    try using a usb keyboard.

  • To install the Sierra but message "this version can not be installed.

    I El Capitan on my Mac.  Tried to install Sierra and received the message that this version can not be installed on my computer.  I think I have enough memory and storage, and when I asked for "More" it shows nothing.

  • error 1097 after the call dll function that allocates memory inside

    Hello!

    When a one call my duties in my dll of LabView, I get an error 1097. My function takes a few arguments, and then allocates memory for the measure.

    He doesn't have pointers to this memory area, it's just allocates this memory for himself. I don't know what could be the problem, no doubt, I'm missing something.

    Could you please help?

    Best regards

    Tamas


  • don't get open email addresses do not message, then possibly the email opens; Why this took place over the 2 or 3 days?

    During 2-3 days when I try to open an e-mail or delete an email I get "not responding" after 30 seconds or so him "unresponsive" goes then and I can open the e-mail or delete it. Why this is happening now and how can I fix it? It is very annoying to have to wait to read or delete an e-mail. I compact the file whenever the message appears on my screen.

    https://wiki.Mozilla.org/Thunderbird: test: Antivirus_Related_Performance_Issues #McAfee

  • import the shared library function name change

    Hello

    I used 'Import Shared Library' to create a lvlib, but he changed function name, for example to Z2onj() on(), so created VI does not work.

    It has this error:

    Call library function node "libname.": Z2onj: function not found in the library

    Details:

    The name of the function specified for this node is not found in the library. Click the node to call a library function and select Configure, and then choose the name to function properly.

    How can I solve?

    Thank you.

    Hi Salvo,

    you need to create again the lvlib with the new name.

    Kind regards.

  • How to enable the Java Script function in APEX 4.2.6 running on the result of an Xquery query.

    How to take a SQL query result in the source section of an APEX "agenda of the page" field and allow this request to be formatted using XML in an HTML format for a Java Script file to perform a function on the result?

    Currently I have the following text:

    To query the DB table and format the result as HTML:

    SELECT XMLELEMENT ("UL id ="ticker01"', XMLAGG (XMLFOREST (Scroll_Mess AS LI))") "item UL' OF Web_Ticker where Mess_Id < 10 order by Mess_Id;


    That displays the following:


    < UL id = "ticker01" > < LI > HELLO < /LI > < LI > HELLO < /LI > < /UL id = "ticker01" >

    I need the output of this to be visible to a JScript function that is currently called the "head of page", but there doesn't seem to be its scope? The function works correctly if there is a list in the page field items 'Text element Pre' but does not work correctly when used in conjunction with the query to generate a table form.

    If everyone is happy to help I would be grateful .

    James.

    Solved!

    In order for the request to be part of the DOM of the page of the APEX, the Java Script allows to perform its function on the result marked "HTML" to query, you must set page of the apex on which the query resides and then add the inner text of this page to a second variable for which the function of web ticker can run on as follows:

    $(function() {})

    var x = $("#P9_TICKER_DATA");

    var y = x [0] .innerText;

    x.Append (y);

    $("UL#ticker01").liScroll ();

    });

    From there, on the Java script is able to properly see the result of the query in HTML format.

  • I prefer SEPARATE (for multiple open documents) instead of tedious proceedings hover over the icon and then choose the one I want.

    Notepad or WORD or EXCEL, Lotus SAMETIME, I prefer SEPARATE (for multiple open documents) instead of tedious proceedings hover over the icon and then choose the one I want.  I can't figure out how to change that, and it's a boring true change to XP. Does anyone know how to do this?

    Go to the Start menu button, right-click on it, select Properties, click the task bar .

    Click the drop-down list buttons Taskbar & select never combine.

    That's all.  You should now see an entry of the separate taskbar for each open file on your PC.

  • My iTunes is a collection of songs with the same artist, the same album artist and the same album separately. How can I fix it?

    Can someone tell me how to solve this problem? I put a lot of effort in organizing my collection and I hate to see 15 sections 'Lil Wayne' in my artist entry or right of the complete discography of Paul McCartney by Paul McCartney with 1 song. I tried to edit all the files together, intentionally misspelling the name and spelling then it right once again, but it do not work and that the use of work well, but it doesn't seem to work.

    If iTunes displays multiple instances of an artist or an album then generally what works is to select all the associated tracks and use read information to add say end X for each of the areas that the slopes have in common:

    • For an album. Album, artist of the Album and artist (if the artist is the same for all tracks) *.
    • For an artist; Album artist (artist and unless there is the comments/featured artists listed that should not be changed)

    Apply the change which merges things together, then remove the excess characters. Occasionally, it can help to close and reopen iTunes between two renaming operations. Part of a compilation should also be set in a consistent manner.

    * If the titles must be synchronized to a non - iOS device, there should be a common artist and/or album must be defined as a Compilation.

    Use the view of songs and display fields, Album, genre, Album, Album artist, genre artist Album, artist and genre artist side by side to see you whether or not it is necessary to change the artist and if sorting values could be the cause of additional problems. See grouping in albums, titles for help if necessary.

    Another tip duplicates stubborn reality. At one point, I had three batches of various artists in the view of artists in my iTunes game library that wouldn't meet usual backward X treatment. What I found worked was adding the final X, but with each group, iTunes wanted to separate start typing a value and let iTunes autocomplete of the Var... for various artists. Collection of AutoComplete lists seemed to work when the full value of collage/montage does not.

    TT2

  • Drivers Intel blocks most of the time, and every time I try to solve this question message says: the solution to this problem can not be downloaded.

    I use OS Windows7, drivers intel blocks most of the time, and whenever I try to solve this question message says: the solution to this problem can not be downloaded. What should I do?

    Original title: problem with drivers

    Hi Pragati,

    1. What is the accurate and complete error message you get?
    2. when exactly you get this error message?
    3. don't you make changes to the computer before the show?
    4. What is the brand and model of the computer?

    This problem can occur if the drivers for this particular material is not updated.

    Method 1: I suggest you run the hardware and devices Troubleshooter and see if that helps.

    Open the hardware and devices Troubleshooter

    http://Windows.Microsoft.com/en-in/Windows7/open-the-hardware-and-devices-Troubleshooter

    Method 2: I suggest you to update the drivers for the Intel hardware by selecting the model number from the following link:

    https://Downloadcenter.Intel.com/default.aspx

    Come back and let us know the State of the question, I'll be happy to help you. We, at tender Microsoft to excellence.

  • Opengl32.dll is not designed to run on windows or it contains an error. I reinstalled the graphics drivers. During the execution of the games, it shows this error. What should I do to fix this?

    Opengl32.dll is not designed to run on windows or it contains an error. I reinstalled the graphics drivers. During the execution of the games, it shows this error. What should I do to fix this? Is it a graphic file or a file from microsoft?

    Hi Jason,

    1. What is the number of brand and model of your system and graphics card?

    2 did you a recent software or hardware changes to the system?

    This error can be caused by an application, including any old games you have installed on your system.

    Because you tried to reinstall the drivers for video card, you can try to perform a clean boot and check if it helps.

    A clean boot to check if startup item or services to third-party application is causing this issue.

    You can read the following article to put the computer in a clean boot:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

  • Call the function in LabView from a DLL, and then access the global variable of DLL

    I've created a DLL in LabWindows with a function and structure.  I want to call the function from LabView and then access the overall structure.  I am able to call the function in the DLL with a "call library function node" and has access to the return value, but I can't understand how to access the overall structure.  The structure is declared in the header DLL with __declspec (dllimport) struct parameters file.

    Is it possible to access this structure without using the library of network variables?

    My guess is that you need two bytes of padding after "in_out" and another to two bytes of padding after "anin."  The reason being that ints are 4 bytes, and most of them C compilers will align on 4-byte boundaries.  The struct will naturally start to such a limit (in fact, in Windows, it will probably start to an 8 byte boundary).  If you then count bytes in your structure, you are 70 byte after "in_out."  70 is not divisible by 4, so you need 2 bytes more to reach the next 4 byte boundary.  You can also you could reorganize your struct so that "anin" follows "in_out" and this is probably the best option if it won't cause you other problems.

    Unlike most C compilers, LabVIEW compressed structures as closely as possible, without filling.  I don't know enough about the history of LabVIEW and internal parts to explain the reasons and to do this performance penalty, but, as choice of LabVIEW "endianness", it is probably a remnant of the first versions of LabVIEW that were running on the Mac.

    If for some reason you want to force your C struct to match package LabVIEW, you can use the #pragma pack (x) directive, but I wouldn't recommend that here because you can control the C and LabVIEW.

    EDIT: in the cases where it was not clear, add padding to your cluster of LabVIEW, insert appropriate size or items at the place desired in the cluster.

  • Zoom in &amp; out while using the pointer - this function can be disabled?

    Hello all - I need help please. Most of the time when I use my new HP laptop, while I use the mouse Touchpad Square that moves the pointer on the screen, often, sometimes the screen zoom in or out. I found a function of zoom on the laptop, but I can't find anything that says "turn off the zoom feature. Do you know how or if the zoom feature can be disabled touch pad / mouse? It is very annoying to all means must adapt to my zoom, thanks-Tim

    Hi Tim,.

    Try the following.

    Open windows control panel and on the top right, next to the display by: select "large icons".  The new layout, select the mouse option, then the tab setting ClickPad (or device settings), and then click the settings button.

    The option you're looking for is called "Pinch Zoom" (see image below) - remove the check mark next to this entry, and then click apply and then click Ok to save the setting.

    Kind regards

    DP - K

  • Windows will start, the screen starts flashing and then the screen say Logging Off, then restore the screen to the CTRL ALT DEL all other functions will not work.

    Start my computer, it will default to the CTRL ALT DEL screen.  After graduating in the login screen I enter the password.  Windows will start and then the screen starts flashing and the screen say Logging Off, then restore the screen to the CTRL ALT DEL I can boot into safe mode.  All other functions will not work.

    Thank you

    I guess you wanted to ask how to solve the problem. If then all in Safe Mode you can use system restore to set up Windows to a point when the problem did not exist.

Maybe you are looking for

  • Black background in youtube firefox only

    So it comes out not the case today. A random part of the background on YouTube is now black. As shown in the picture. http://i62.Tinypic.com/m7reie.jpg This only happens with Firefox, even in safe mode. I tried chrome and I don't get the black part.

  • How to use Bluetooth on Satellite U200

    Hello I have the Satellite U200 and the Bluetooth version v5.00.10 (T).I have no idea how can I use my Bluetooth to transfer files between my computer and my cell phone (Sony ericsson k800) or between my laptop and other computer portable... In fact,

  • Satellite L30-106 and LBA48 support

    Hello everyone, I wonder if the L30-106 is compatible LBA48, I bought this one equipped with a 60 GB hard drive and I intend to change it to a 500 GB hard drive. I use Ubuntu and can just find a way to know if LBA48 is supported in this model. Any he

  • Insert visa resource drop-down list

    So I get a lot of these examples in serial communication and they all have this Visa list resource name dropdown that allows me to choose from a list of serial ports. How do I do / insert one of them without simply copy and paste from other screws?

  • No default printer

    When I go to print tax returns to the ProSeries basic version on my 64-bit of Windows Vista of stand-alone computer, I get a response saying "No default printer Found."  I went to download the fix from MicroSoft, but it will not download successfully