small problem... two days trying to find the error

Hey people, I'm trying to get two values from two different tables, to put in one that connect the two of them, I have work, but I'm trying to make it simpler and smaller.

create or replace procedure baba
(
number of var_A,
var_b varchar2
)
AS
BEGIN
Insert into baby (c, d)
Select (c, table_c d, table_d where table_c.a = var_a and table_d.b = var_b);
END;

I'm doing two selection within one and insert the value directly to the third table. three days on that.
When I compile it gives me the error missing support, weird.
Thank you.

Welcome to OTN. ;)

Always mention your version of DB.

Now, regarding your question - why do you need to apply this using procedure where a single DML will suffice?

Ask yourself always, on the question of whether you should implement them using SQL or PL/SQL.

As a general rule, try using SQL. If so you can not only go PL/SQL.

Now,.

create or replace procedure baba
(
var_a number,
var_b varchar2
)
AS
BEGIN
insert into bebe ( c, d)
select c, d
from table_c, table_d
where table_c.a = var_a
and table_d.b = var_b;
END;

So I have remove these pins.

It should work.

N.B.: Not tested...

Kind regards.

LOULOU.

Added: Also you can use the join between the table condition two - otherwise, it will produce product curtesian. ;)

Published by: Satyaki_De on February 20, 2010 22:54

Tags: Database

Similar Questions

  • I tried to install since 11/12/09 important update KB976098 and continue to get error code 8E5E03FB unknown error. I tried to find the error code, but can't find it. How can I download and install this update?

    I tried to install since 11/12/09 important update KB976098 and continue to get error code 8E5E03FB unknown error.  I tried to find the error code, but can't find it.  How can I download and install this update?

    Quote your full version of Windows (for example, WinXP SP3;) Vista SP1; Vista 64 - bit SP2; Win7; Win7 64 bit) when you post in a forum or a newsgroup. Please do it in your next reply.

    Short story: If you do NOT live in one of the zones listed in http://support.microsoft.com/kb/976098, you really need not to install this security update not any way so you can hide it just ("don't show me this update"). ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • When I start my computer, it tries to find the solution center but can not be found how can I download this program?

    When I start my computer, it tries to find the solution center but can not be found how can I download this program?

    original title: Solution Center?

    I think that the solution center is a part of HP.  I go to programs - run and type msconfig.  Click the Startup tab and look for Solution Center, then uncheck the box so that it will not start then click on apply and restart the computer

    Or
    You can put in the HP printer drive and re install the printer that can also work.  Hope this helps
  • Reinstalled Virgin mobile broadband 2 go and continues now trying to find the phone line to dial up

    I had to uninstall and reinstall the Virgin Mobile Broadband2go software and now whenever I try to connect to the internet, computer tries to find the phone line for dial-up access. I think that this happened to me once b4 and I had to change something in the control panel but what? I have windows XP on this computer.

    Disable the modem connection.

  • How can I change the font and size of legends? The manual says it's possible, but I lose a lot of time trying to find the way. Help please.

    The manual says it's possible, but I lose a lot of time trying to find the way. Help please.

    I think that the subtitle Editor is not very well developed, since I adapt the text, the timming, but then, text does not fit, or letters are very separated... and I can't work out these details.

    Thank you

    I don't think that you can change the size of the police with captions. I think that because it is a 'standard' you are limited to what this standard supports only. If the manual says: you can change the font size then it probably still says: you can change the fonts familty. I was never able to change the size of police or the family. The manual should be rewritten to prevent people to mislead him.

  • Installed CC 30-day trial.  Getting the error "Lightroom can't create a catalog named"ightroom catalog on volume OC (c) because Lightroom can't save the changes to this place". Tried to "Choose a different catalog" same mistake several times.

    Installed CC 30-day trial.  Getting the error "Lightroom can't create a catalog named"ightroom catalog on volume OC (c) because Lightroom can't save the changes to this place". Tried to "Choose a different catalog" same mistake several times.

    Hello

    Try resetting preferences

    Note:-back up your Lightroom Catalog beforehand and save Photoshop preferences

    * Now reset preferences Hold Down CTRL + ALT + SHIFT (WIN) CMD + OPTION + SHIFT (MAC) while starting Lightroom. A dialog box appears prompting you to restore Preferences (LR)

    Once done open again Lightroom

    Make sure you have a lot of read/write of the location where you save the catalog... To create a folder on your desktop, confirm, then try to create the catalog again it

    I would like to know if there is a question...

    Thank you

    Assani

  • I'm trying to find the paint bucket tool in the new draw for the ipad. can someone help me?

    I'm trying to find the paint bucket tool in the new draw for the ipad. can someone help me?

    You are referring to the iOS app? Tap into a confined space with one of the tools of painting until it fills up.

  • I upgraded from Dreamweaver CS4 to CS6. but now "a Technical error occurred - cannot connect to the host. I spent hours with the technician of the host and we can't find the error. I reinstalled DW4 and it connects to accommodate perfectly. Anyone else se

    I upgraded from Dreamweaver CS4 to CS6. but now when I want to download, I "MFP error - cannot establish a connection to the host. I spent hours with the technician of the host and we can't find the error. I reinstalled DW4 and it connects to accommodate perfectly. Anyone else seen this problem?

    Mac OS 10.8.5

    DW6 error code.png
    None of these issues are causing the error in DW CS6. We double-checked all of them and we did everything right. Also I have exactly the same SiteSetup in DW CS4 and that works perfectly well. Might need to factor 6 which did not exist in the 4? Something that is not in the SiteSetup but in a hidden dialog box?

    I can also download my host using Fetch, a third party FTP. And like I said that DW CS4 works very well. So the problem is not with my host, sound with DW CS6 in particular.

    You are most likely missing something fairly simple (some goofy box cache you in some menus random). The best way to solve this problem, without playing 20 questions...

    1 open the site in DWCS4 and go to Site > Manage Sites > export to create a your site settings .ste file.

    2. close DWCS4 and open DWCS6

    3. go to the Site > Manage Sites > Import to import the .ste file to create a new site at DWCS6

    This will create an exact copy of your CS4 settings in CS6. If it still does not work, let know us and someone should have another idea for you.

  • Presario cq61: I have athe same problem I'm presario cq61 and the error is 55067138lunch

    I have athe same problem I'm presario cq61 and the error is 55067138

    @hatchethouse

    Enter: 40945118

    Kind regards

    DP - K

  • Tecra M2, at wits end, trying to find the latest drivers

    Tecra m2 - PTM20A-00RTD
    Windows XP Pro

    After a reinstall of Windows, I started installing drivers, but difficulties with the 3 drivers.

    _Display Driver_
    1. pilots nvidi interrupt the display of work so I had to disable it in safe mode, now the screen and display working but not properly. When I move the screen open on the desk his jumpy. Also when I scroll down on a window in Internet Explorer Web page flickers.

    _Wireless Driver_
    2. I can't get the wireless to work. I could install the LAN driver but in the network controller device manager has the q mark yellow and under network connections, there is no wireless driver. I tried to install all the different drivers available on the Web site for different brands, but nothing helped. There is no description of the appliance under the laptop wireless. I tried the utility network driver as well, but did not work. It has certainly capacity wireless on the laptop I have a switch on the front of the laptop, when I turn it on an orange light appears.

    _Unknown Device_
    3. There is a unit marked as unknown in Device Manager. I hoped this summer the wireless, but tried to install the drivers and no luck.

    Please any help will be appreciated as I have been at this for 2 days now and its starting to get the better of me.

    Hello

    As far as I know the Toshiba Tecra M2 supports a chip nVidia graphics.
    The graphics card driver can be found on the European driver Toshiba page.

    The WiFi chip could be Cisco.
    But as far as I know that a series of laptop can be equipped with different pieces of equipment and notebook loads may be a little different. For example; the wireless network card can be different.

    Install a tool of diagnosis of equipment as mentioned by another user; You can also use an Everest home edition or Sandra (System tool).
    Such tools analyze the material and provide different details.

  • Trying to find the Pavilion dm4-1165dx with Windows 7 64 bit

    While using my laptop it is stopped and tried to restart, but was unable to do so.  When I first turn on the HP splash screen will appear and then freeze.  If I turn it off and then turn on the HP splash screen appears and then the screen turns white with the exception of a cursor blinking in the upper left corner.  I can access the BIOS and run all the system diagnostics indicate no problems.  When I first bought the laptop I did a disc that I had to label as 'Windows 7 64-bit repair disc'.  At the start of this disc, it says that Windows is loading and I finally gave different recovery options, but so far none of them doesn't seem to work.  HP Recovery gives me the opportunity to use the Microsoft System Restore. It will tell the laptop has been restored successfully, but the results are the same, a frozen HP splash screen or the splash screen and then the curors flashing on a white screen.

    Hello

    Boot from your disk to repair again, select repair your computer and choose the command prompt.  When this charge, enter the following commands and press on enter after everyone – including spaces as shown.

    Bootrec.exe

    bcdedit/export C:\BCD_Backup

    c:

    Boot CD

    BCD attrib s h - r

    Ren c:\boot\bcd BCD.old

    Bootrec /RebuildBcd

    Bootrec /fixmbr

    Bootrec /fixboot

    Remove the repair disk and try to restart the laptop.

    Kind regards

    DP - K

  • I'm trying to find the Office remotely. I did a search and it is not on my system. I have Vista Ultimate

    I tried to remote desktop access and you can find the program.

    Hi VDeal,

    Don't know how you try to perform a search, open remote by clicking Start, all programs, accessories, and then clicking Desktop connection Remote Desktop connection.

    Note: You can also open Remote Desktop Connection (RDC) by typing "mstsc" (without the quotes) in the search box of the start menu.

    For more information about the remote desktop connection, please see the link below

    http://Windows.Microsoft.com/en-us/Windows-Vista/Remote-Desktop-connection-frequently-asked-questions

    DRC is available on Windows Vista Ultimate Edition.

    Thanks and greetings

    Ajay K

    Microsoft Answers Support Engineer
    ***************************************************************************
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Trying to find the windows base office

    Started having problems in February, spoke with many support technicians. Last suggestion was to restore the laptop. This did not work, eventually send off to be repaired. Pieces of equipment replaced, repaired or diagnosed have summer-Fan Assembly, hard drive, radiator Assembly, wireless network card. The operating system that is restored with OS disk. Now that he's back at home, I can't find the windows base Office. I'm running in circles. Help, please.

    http://support.Microsoft.com/default.aspx/KB/326246

    'How to replace Microsoft software or hardware, order service packs and upgrades, and replace product manuals'

    And for the Office of the questions:

    http://answers.Microsoft.com/en-us/Office/default.aspx

    Office at the above link forums

    See you soon.

    Mick Murphy - Microsoft partner

  • Trying to find the network drivers...

    I'm all new to VMWare and I am trying to build a box of ESXi for self-study.

    It is a desktop Lenovo M91p 5067-A1G with 12 GB of memory.

    Whenever I tried to load the ESXI 5 ISO it says had no network driver.  I found a 'solution' to insert drivers into the ISO, but now I "don't load the multiboot modules: boot image is damaged."

    Can anyone tell me where to find the drivers to correct network or an ISO that will work for me.

    Thank you

    Thank you very much.  That worked a treat.

    Me create loads of other queries, but that's a separate issue.

  • I'm trying to find the part number for disc hard Caddy/cage for second in DV7-2050ea SATA drive

    I'm going crazy trying to find a hard disk to the second disk Caddy hard bay new DV7-2050ea, I tried to ask HP, but nobody want to help there at the present time. I have the second disk ready, just the shopping cart/cage to put in and I have RAID configured for mirroring of the main hard drive.

    Any help would be great, (HP parts web pages do not seem to work for me in explore or firefox).

    Thank you

    Paul

    Thank you for your help, it is on its way to me from the supplier that you suggested.

Maybe you are looking for