make a function using the update query - error PLS-00103

I get the following error message in my pl/sql developer every time, I try to create this function in my package
PLS3-00103 encountered the symbol ";" when expecting one of the following return

Please note, I'm trying to do is to get a user entered to perform an update for a specific row in a table called accountingtable that is located in the CDC schema. I don't want to make a comeback but in my update function.



----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The package Specfication
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FUNCTION update_price (needed_newprice in ccl.accountingtable.price%rowtype,
partforupdate in ccl.accountingtable.part_id%rowtype,
colourpart to ccl.accountingtable.colour_id%rowtype);

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
package body
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FUNCTION update_price (needed_newprice in ccl.accountingtable.price%rowtype
partforupdate in ccl.accountingtable.part_id%rowtype,
colourpart to ccl.accountingtable.colour_id%rowtype);



BEGIN
Update accountingtable
fixed price = (needed_newprice)
where part_id = (partforupdate)
and colour_id = (colourpart);

END update_price;

Thanks in advance for any help.

Procedure update_price (needed_newprice in ccl.accountingtable.price%rowtype,
partforupdate in ccl.accountingtable.part_id%rowtype,
colourpart to ccl.accountingtable.colour_id%rowtype);

No % rowtype. Use type %

Procedure update_price (needed_newprice in ccl.accountingtable.price%type,
partforupdate in ccl.accountingtable.part_id%type,
colourpart to ccl.accountingtable.colour_id%type);

is not respected in the body

create or replace pacakage body test_board is

procedure update_price (needed_newprice in ccl.accountingtable.price%rowtype---ici
partforupdate in ccl.accountingtable.part_id%rowtype,
colourpart to ccl.accountingtable.colour_id%rowtype) is

Published by: user2679851 on June 2, 2010 14:01

Tags: Database

Similar Questions

  • using the update query exists

    Hello
    I run the query below
    and I'm ggetting error

    update of sh_mem one
    Set a.custno =

    (select b.custno in the ac_details b where to_number (a.memrefno) = b.memberno)
    where exists (select 1 from ac_details b where to_number (a.memrefno) = b.memberno)
    SQL > /.
    Set a.custno =
    *
    ERROR on line 2:
    ORA-01407: cannot update
    ("TRIAL". "" "" sh_mem '. "" CUSTNO') with the NULL value

    number of records in both tables do not match

    Help, please

    HEMU wrote:
    OK Sir
    It worked

    But you don't score one of the posts as 'Correct' or 'useful '.

    :-(

  • Error in database engine Microsoft JET '80004005' operation must use an update query.  / fax_remove/index.asp, line 115

    everything began to receive the following error message

    Microsoft JET Database Engine error '80004005'

    Operation must use an update query.

    /fax_remove/index.asp line 115


    for the following Web page

    Remove.canchair.com


    no coding changes have been achieved

    Use your host control panel to check the permissions of the remote folder that contains the mdb and the mdb itself. Contact your host if you are unsure how to proceed.

  • I'm trying to update CS 6Illustrator tool by using the update but I continually get an error saying:

    I'm trying to update CS 6Illustrator tool by using the update but I always get an error saying "updates could not be applied." How can this be?

    Here is my log file:

    Update Adobe Illustrator CS6 (version 16.2.1)

    Failed installation. Error code: U44M1P7

    If you are using a mac: http://helpx.adobe.com/creative-suite/kb/unable-apply-extension-manager-update.html

  • [Microsoft] [ODBC Microsoft Access driver] Operation must use an update query.

    Trying to insertion or put to update an access database I get on the error message:

    [Microsoft] [ODBC Microsoft Access driver] Operation must use an update query.

    What is the cause of this, and what could be the solution?

    Thank you.

    Ross

    I discovered after testing that the directory where the database file resides must be barking like rwx as well - not intuitively obvious, certainly!

    I ended up creating a new directory with the file of database inside also well marked for write access in the world and relying on my permissions of normal file off root on the server to protect the directory and file.

    Thank you!

    Ross

  • Pavilion dv7-6b20ex: since the upgrade to windows 10 I get the update message error 0 x 80240017 Windows Defender

    hi..

    Since the upgrade to windows 10 I get the update message error 0 x 80240017 Windows Defender

    I hope to have useful response... Thank you

    This letter specifically;

    Updated definition for Windows Defender - error (definition 1.203.2341.0) KB2267602 - 0 x 80240017

    Updated definition for Windows Defender - error (definition 1.203.2341.0) KB2267602 - 0 x 80240017

    https://support.Microsoft.com/en-us/KB/918355

  • I downloaded the latest version of the DNG Converter Camera Raw version 9.1.1 for windows. However, I get error install the update saying "error opening file for writing. Also on my help menu updates is not active?

    I downloaded the latest version of the DNG Converter Camera Raw version 9.1.1 for windows. However, I get error install the update saying "error opening file for writing. Also on my help menu updates is not active?

    If the installation program itself fails to open and run. Download it again maybe your current download is corrupted. Also, what OS you are using and you are an administrator with permission to install.

  • When I try to use the updated creative cloud up the file runs and then informs me that "Please connect to the internet, and then try again." But I'm obviously connected.

    When I try to use the updated creative cloud up the file runs and then informs me that "Please connect to the internet, and then try again." But I'm obviously connected.

    PlsConnect.JPG

    Hi Colin,

    Please try to reinstall the creative cloud after disabling antivirus and firewall.

    Reference: error download or update Adobe Creative Cloud applications

    Concerning

    Megha Rawat

  • Using the Update Manager when he is incapable of vMotion.

    Using the Update Manager when he is incapable of vMotion.

    I have three Essentials licensed 5.0 hosts and vCenter operating on one of them as a virtual machine. All VM runs on the local disk. I'm tired of patching of CLI and want to use the Update Manager. I can easily do that, on the other hand, two hosts where vCenter is not running but obviously not on the host where it is running.

    I have a data store that is shared in the form of a QNAP NAS, but I can't Storage vMotion because of licensing restrictions. I can't do a vMotion "shared nothing" to another host due to the same restriction. It's like a catch-22 situation.

    I have the service window where I can turn off all the virtual machine

    Anyone has ideas on the use of Update Manager in this configuration or do I just forget about it

    Clone the vCenter even to another VM and make the vcenter temp on another host or elsewhere to deploy a new vCenter on another host and update the host from there

  • How to use the update updates 5.1.0a to 5.1.0b?

    Sorry, I'm a newbie.

    Can someone please advise me on how to upgrade my ESXi of either 5.1.0 & 5.1.0a to 5.1.0b using the Update Manager?

    Is it possible to update without having to use the ISO (using the installation of patches)?

    I have 2 main questions:

    1. impossible to update Manager (someone has helped me create a baseline using downloaded ISO "VIMsetup")

    -Guest disconnected with weird error console (sorry no screenshots that I discovered that it was a NETWORK card driver problem much later)

    -Blocked 26% (if you use the Update Manager)

    -some weird message on console, can only view or list a few config

    2. cannot perform direct upgrade of iso or disc bootable on Dell G 12 servers (Dell R320 & r.620)

    -No found NETWORK card (if you use disks or virtual disks via iso mount)

    The file ~3.4GB (arther than 3 TB) you mention is very probably the package of vCenter Server (VMware-VIMSetup-all - 5.1.0 - 947939) and does not contain installation ESXi (VMware-VMvisor-Installer - 5.1.0 - 799733.x86_64.iso).

    Update Manager cannot be used to update or patch vCenter Server, but only the ESXi hosts (or virtual appliances).

    André

  • Messed up gets worksheet formatting when you use the update to add additional sheets

    Someone had problems with cfspreadsheet where a sheet has formatting issues when the sheet is added as an extra sheet by using the update action, while the same sheet looks good when the leaf is the first or the only sheet added using the action of writing?

    I use 10 CF.

    For what it's worth, according to some other posts that I found here, I've reconfigured my code so that it creates an object of unique spreadsheet with multiple sheets, rather than objects of individual worksheet for each sheet, then he makes a single call to write this object on the disk. That seems to have solved most if not all of my formatting issues. The basic takeaway I suppose is do not use the update action if you can possibly avoid it.

  • Can I call a function using the array index?

    I defined a table that stores the name of the function, like this:

    var aresetButtonTop:Array = new Array(resetTop1,resetTop2,resetTop3,resetTop4,resetTop5);

    Then I have a button named "btnresetTop" which, once clicked will be called one of the five functions stored in the array (aresetButtonTop) above. Functions are called at runtime depending on certain conditions. I need to figure out how I can call these functions using the array index. I use the following code to call the function. The value of i has already been calculated.


    btnresetTop.addEventListener (MouseEvent.CLICK, aresetButtonTop [i]);

    After doing this, I get the following error when I click on the button:

    TypeError: Error #2007: parameter listener must be non-null.
    at flash.events::EventDispatcher/addEventListener()
    at gallerytest_fla::MainTimeline/thumbTopClick()

    Note: thumbTopClick() is a function within which all these codes are written.

    I need to know if it is posible in AS3 to call a function name using array index or not. If so, could you afford ehelp me out.

    You can certainly do.

    In your case, it looks like i is out of range. Show your loop.

  • Functions in the inner query

    Hello!
    I challenged the following problem. Here's the simple query:

    SELECT id, id, id from
    (select 1, sys_guid () as double id)

    as you can see there is a sys_guid() function in the inner query. So, why do we use these
    constructions? Right - to calculate the value of a function once and use it again so much
    time, that we need. So I guess to get three identical fields. But, as it turns out, it is not
    always too! I mean, on one version of Oracle database this query return the same three
    fields, but on another - three different! Based on what the sys_guid() function is a kind of
    random function, I can assume that the function is run three times in the second case
    instead of one (as it should)! So why is it? Is - this bug from version, or an option in
    control file that influence the optimizer?

    PS: I found a workaround on this basis, where this query produces abnormal results, we can use
    Internal ORDER BY clause in the query:

    SELECT id, id, id from
    (select 1, sys_guid () as command id double by 1)

    The oracle optimizer is the fusion view inline with the outer select block. He replaced effectively by:

    select sys_guid(), sys_guid(), sys_guid()
    from dual
    

    You can avoid this as follows:

    select /*+ no_merge(x) */
             id,id,id from
    (select 1,sys_guid() as id from dual) x
    

    Published by: Toon Koppelaars on July 9, 2009 09:22

  • Is it possible to make a slipstream using the recovery CD (SM30-154 WXP)?

    Is it possible to make a slipstream using the product recovery (satellite SM30-154 pro and windows XP home) and put on day of windows XP sp 3 die?
    If so, how?

    friend
    Bert

    Hello

    What you could do is to create a new image using a 3rd party such as Norton Ghost for example application.

    You might first install Windows XP using the Toshiba Recovery CD.
    You could install the MS 3 service pack and then you can create the new image.

    This image could be stored on the new CD, or as a file on the second partition.

    I did it too. I ve got two partitions on my HARD drive and have created a backup of C (System partition) by using the spirit. The file is stored on D (data partition) and if something goes wrong with my Windows I can restore using this file.

    Easy ;)

  • How to select only the part by using the sql query

    Hello

    I have the task to retrieve only the integral of the input text by using the sql query.

    The entry is as follows

    Entry for the price setting

    $12.5 (FYI without space)

    $ 12.5 (FYI single space)

    $ 12.5 (double space FYI)

    $12.5 (FYI multiple space)

    $12.5 (FYI multiple space)

    Output expected of 12.5

    The price is the type varchar2 column in the store_price table.

    Please let me know how to achieve this.

    Thanks in advance.

    If this is always the case that you get a $ followed by a number of places, you can use something like:

    Select to_number (ltrim ('$ 12.5',' $')) DOUBLE

    or

    SELECT ltrim ('$ 12.5',' $') OF double

    but take care of your nls_numeric_character settings if they are defined so that, for example, a comma is the decimal separator, you will have a problem.

    HTH

Maybe you are looking for