Using the ' in PLSQL

I wish to replace ' in a column of a table in PL/SQL. I know the escape sequence in sqlplus but it doesnt work in pl/sql. so what do I do?
for example I want
replace(column_name,''','')
thanks in advance

SQL> select :a, replace (:a, '''', '') from dual;
:A                               REPLACE(:A,'''','')
This's test                      Thiss test

Similar Messages

  • Updating large table using the WITH CLAUSE or PLSQL

    I tried to perform an update on a table with over 15million records using the merge statement below but it's very slow.
    Can someone help me re-writting this statement using the WITH CLAUSE or a PLSQL statement that will make it run faster?
    my merge statemet:
    MERGE INTO voter dst
    USING (
    SELECT voterid,
    pollingstation || CASE
    WHEN ROW_NUMBER () OVER ( PARTITION BY pollingstation
    ORDER BY surname, firstnames
    ) <= 1000
    THEN 'A'
    WHEN ROW_NUMBER () OVER ( PARTITION BY pollingstation
    ORDER BY surname, firstnames
    ) BETWEEN 1000 AND 2000
    THEN 'B'
    ELSE 'C'
    END AS new_pollingstation
    FROM voter
    ) src
    ON (src.voterid = dst.voterid)
    WHEN MATCHED THEN UPDATE
    SET dst.new_pollingstation = src.new_pollingstation
    the with clause approach:http://www.dba-oracle.com/t_with_clause.htm
    thanks.

    Well, here's your query formatted for people to read...
    MERGE INTO voter dst
    USING (SELECT voterid,
                  pollingstation || CASE WHEN ROW_NUMBER () OVER ( PARTITION BY pollingstation ORDER BY surname, firstnames) <= 1000
                                           THEN 'A'
                                         WHEN ROW_NUMBER () OVER ( PARTITION BY pollingstation ORDER BY surname, firstnames) BETWEEN 1000 AND 2000
                                           THEN 'B'
                                         ELSE 'C'
                                    END AS new_pollingstation
           FROM voter) src
    ON (src.voterid = dst.voterid)
    WHEN MATCHED THEN
    UPDATE SET dst.new_pollingstation = src.new_pollingstation
    ;In future, please read {message:id=9360002} and post relevant details.
    What do you mean when you say it's "slow"? How have you measured this? Have you examined the explain plan?
    Take a read of the threads linked to by the FAQ post: {message:id=9360003} for details of what you need to provide to get help with performance issues.

  • Is it possible to use the date picker in regular PLSQL?

    I would like to use the the date picker but my application is not suited to ApEx.
    Thanks!

    Hi,
    >>>configuration instead of coding etc
    currenly it is not possible to achive it without any coding
    >>>repeat messages with RSNAST00
    RSNAST00 is not used to repeat messages (idocs) but to send them
    try using standard IDOC in your sd invoice scenario
    if you don't want to do any coding
    Regards,
    michal

  • Using the plsql type xmldom.DOMDocument in a java function

    Is it possible to call a java function from PLSQL passing in a
    xmldom.DOMDocument? If so, how?
    I have tried deploying the java function with input types of
    oracle.sql.ARRAY and oracle.sql.STRUCT. Neither of these works
    as the associated PLSQL package will not compile due to 'records
    not being supported'.
    I also tried changing the java function input parameter to the
    java type XMLDocument. When I did that, I didn't even get the
    opportunity to deploy the function; presumably because
    XMLDocument is not a PLSQL type.
    Can anyone help?

    Hi.
    The definition of INL_GET_PARTY_SITE_NAME:
    FUNCTION INL_GET_PARTY_SITE_NAME(p_line_group_rec INL_CUSTOM_PUB.inl_ship_headers_rec) RETURN VARCHAR2 IS
    l_party_site_name VARCHAR2(100);
    BEGIN
    l_party_site_name := 'Allied Manufacturing';
    URN l_party_site_name;
    END INL_GET_PARTY_SITE_NAME;
    Thanks.

  • Using functions in plsql

    Hello All:
    My question is, Which is more efficient to use in Plsql:
    IF v_DestFile IS NULL THEN
    v_DestFile := in_DestFile ;
    END IF;
    OR
    v_DestFile := NVL(v_DestFile , in_DestFile);
    Using the second one requires a call to a function..
    What are your thoughts.
    Thanks
    Leonard

    The following test run on Windows XP with an Athlon 3400 shows that NVL function take more time to execute. However to see the difference you have to run this code many many times (if you run this this code 1 million of times within a SQL query or within PL/SQL, you will likely get other performance problems ...):
    SQL> set timing on
    SQL>
    SQL> select * from v$version;
    BANNER                                                                         
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod               
    PL/SQL Release 10.2.0.1.0 - Production                                         
    CORE     10.2.0.1.0     Production                                                     
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production                        
    NLSRTL Version 10.2.0.1.0 - Production                                         
    Elapsed: 00:00:00.00
    SQL>
    SQL> declare
      2  vdf varchar2(10) := null;
      3  vidf varchar2(10) := 'ok';
      4  begin
      5   for i in 1..100000000
      6   loop
      7    if vdf is null then
      8    vdf := vidf;
      9    end if;
    10   end loop;
    11  end;
    12  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:05.57
    SQL> show errors
    No errors.
    SQL>
    SQL>
    SQL> declare
      2  vdf varchar2(10) := null;
      3  vidf varchar2(10) := 'ok';
      4  begin
      5   for i in 1..100000000
      6   loop
      7    vdf := nvl(vdf, vidf);
      8   end loop;
      9  end;
    10  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:21.71
    SQL> show errors
    No errors.
    SQL>
    SQL>
    SQL> declare
      2  vdf varchar2(10) := 'ok';
      3  vidf varchar2(10) := 'ok';
      4  begin
      5   for i in 1..100000000
      6   loop
      7    if vdf is null then
      8    vdf := vidf;
      9    end if;
    10   end loop;
    11  end;
    12  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:05.61
    SQL> show errors
    No errors.
    SQL>
    SQL>
    SQL> declare
      2  vdf varchar2(10) := 'ok';
      3  vidf varchar2(10) := 'ok';
      4  begin
      5   for i in 1..100000000
      6   loop
      7    vdf := nvl(vdf, vidf);
      8   end loop;
      9  end;
    10  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:21.76
    SQL> show errors
    No errors.
    SQL> exit
    [pre]
    Message was edited by:
            Pierre Forstmann
    Message was edited by:
            Pierre Forstmann                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Error when using the RelationManager: WdfError

    Hi,
    I'm trying to use the IRelationManager to get Relation between rooms. I tried to retrieve the manager using:
    IRooms roomsAPI = (IRooms)PortalRuntime.getRuntimeResources().getService(IRooms.PORTAL_SERVICE_ID);
    roomsApi.getRelationManager();
    Unfortunately this does not work most of the times, I get a nullpointer back from the roomsAPI. Funny thing: sometimes it works, but mostly not...
    Also, I can not delete rooms or view the room-relations using the corresponding standard-portal IViews, I'm getting an excpetion:
    com.sapportals.wdf.WdfError
    Does anybody has a clue what is causing this strange behaviour of the portal?
    Thanks and regards,
    Jan Hempel

    This may be a bug in the expression validation, decode is valid in an expression operator always when Set Based code generation only is used (you may get errors if row based is used), if you configure the mapping to set based only code generation mode and default operating mode then try deploying the mapping you should be OK. Otherwise you build an expression that is valid SQL (set based) and PLSQL (row based), the CASE statement will give you this
    Cheers
    David

  • Error when using the expression operator

    Hi All
    When i'm using the following expression in the expression editor i'm getting an error message "expression is not properly formed, error expression cannot be validated". But when i use the same expression in TOAD i'm getting the result. Can any one please help me where i'm going wrong?
    SUBSTR (INGRP1.site_id_nbr, 1, 11)
    || DECODE (SUBSTR (INGRP1.site_id_nbr, -1, 1),
    1, '1',
    2, '1',
    3, '3',
    4, '3'
    Thanks

    This may be a bug in the expression validation, decode is valid in an expression operator always when Set Based code generation only is used (you may get errors if row based is used), if you configure the mapping to set based only code generation mode and default operating mode then try deploying the mapping you should be OK. Otherwise you build an expression that is valid SQL (set based) and PLSQL (row based), the CASE statement will give you this
    Cheers
    David

  • Change workarea rule using the Repository API

    Hi,
    I have a simple question: Can I use the Repository API (either
    Java or PLSQL packages) to change the rule of workarea: in order
    to add to or remove configurations from the rule? I do not want
    the use the RON and preferably not the CLT either.
    I could not find anything about this functionality in the API
    doc.
    Regards,
    Rinse Veltman
    Solution Partners
    Custom Solutions

    Rinse,
    Have a look at the API jr_workarea
    FUNCTION jr_workarea.add_head_entry (workarea_id IN NUMBER
    , entry_ivid IN NUMBER
    , rule_id IN NUMBER:=NULL
    , v_param1 IN VARCHAR2:=NULL
    , v_param2 IN VARCHAR2:=NULL
    , v_param3 IN VARCHAR2:=NULL
    , c_exclude IN CHAR:=NULL)
    RETURN NUMBER;
    Where:
    workarea_id specifies the workarea.
    entry_ivid is the IVID of the configuration, if the entry is
    associated with a configuration, NULL otherwise.
    rule_id is the IRID of the rule to be used, if the entry is
    associated with a rule, NULL if the entry is configuration based.
    param1 through v_param3 are parameter values (if any) for the
    rule.
    c_exclude specifies whether to exclude or include objects
    produced by the rule or contained in the configuration.
    Use entry_ivid to specify a configuration. This is in the Model
    and API documentation.
    regards,
    David

  • How to use the oem_exec_template.sql

    hi,guys
    Env
    OWB 9.2.0.2.8
    Oracle DB 9.2.0.1
    OEM 9.0.1
    I've deployed a mapping SRC_TO_TAR. And I've successfully run this mapping in owb.
    But when I try to use the oem_exec_template.sql to invoke in sqlplus, the script always tells me 'Taks not found'.
    I use the following command to invoke the oem_exec_template.sql:
    sqlplus owb_runtime_access/dw@dwdb @oem_exec_template.sql owb_runtime owb_target PLSQL SRC_TO_TAR "," ","
    the result is
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Session altered.
    Role set.
    Stage 1: Decoding Parameters
    | location_name=owb_target
    | task_type=PLSQL
    | task_name=SRC_TO_TAR
    Stage 2: Opening Task
    declare
    ERROR at line 1:
    ORA-20001: Task not found - Please check the Task Type, Name and Location are
    correct.
    ORA-06512: at line 261
    Could any one here tell me how to correctly use the oem_exec_tempalte.sql?
    thanks very much.
    Frank

    I login in as runtime owner and runtime access user and run the sql:
    select * from all_objects where owner = 'OWB_TARGET'
    I can't find the mapping that I have already deployed.
    is this the reason why it always retrun "Task not found"
    who knows?
    urgent
    thanks
    Frank

  • Using the Portal Single Sign-On for java applet clients

    Hi
    We have a task to build a java applet working within a portlet and comunicating to some session EJB(wrapped BC4J) running on the OC4J. The applet is presumably connecting to server via RMI. This connection should be restricted to some groups of portal users.
    When a user is entering the applet he is supposed to be already logged into the Portal.
    There is a lot of information on building custom secure portlets using only a pure HTML(same as JSP) client whith the help of the Portal Single Sign-On.
    But, is it possible to use the Single Sign-On for establishing a secure RMI connection from applet to OC4J without entering a password in the applet once more?
    Yuriy

    Perhaps you can write a small JSP page or PLSQL
    web procedure that will grab user name from
    the SSO Server (via SSOSDK/mod_osso)
    and invoke the applet with encrypted user name.
    The applet will receive the encrypted username
    and decrypt it to get the clear user name.
    This help to get Single Sign-On.
    To make sure that environment is secure, encrypted
    user name parameter should have random salt,
    user name, and time stamp to prevent replay attack.
    Applet must make sure that the encrypted users name
    time stamp set by the JSP/PLSQL page has value
    within a reasonable time limit like 5 minutes

  • How to delete the members in one dimension use the maxl script

    i have question that i want to delete the members in one dimension useing the maxl script, but i do not know how to do it. can the maxl delete the members in one dimension? if can, please provide an sample script, thank you so mcuh.

    MaxL does not have commands to alter an outline directly, except the reset command which can delete all dimensions but not members selectively. The best you could do would be to run a rules file (import dimensions) using a file that contains the members you want to keepload rule for the dimension. As typical the warning is to test this first before you do it on a production database

  • How can multiple users use the same Creative Cloud Individual on one single-machine?

    We have one shared graphics workstation, which is infrequently in use by different people - therefore we bought a single-workstation license (which we were referred to "Creative Cloud Individual"). In the FAQs it says it installs locally, but whenever a user different from the installing adminstrator logs in, he is forced to use the trial.
    Is there a way to make the local installation usable on that single machine for multiple users?
    Thanks in advance for your reply

    Serenatasystems do the other users not have administrator access?  What happens if they sign in using the Adobe ID tied to your Creative Cloud subscription?  Do your Adobe Creative applications then exit trial mode?

  • What happens on iCloud (ex. contacts) when multiple family members use the same Apple ID?

    What happens on iCloud when multiple family members use the same Apple ID?  For example if we all choose to use iCloud for contacts, are they all merged together?  We use the same Apple ID so we can use find my iPhone to keep track of the whole family.

    Of course if you are both connected to the same iCloud account you have the same contacts - what did you expect?. The contacts live on the server and are read from there by the devices; so as you've both managed to sync your contacts up to iCloud they are now inextricably mixed. You can only delete your contacts by deleting individual ones, and doing that will delete them from your phone as well.
    You can only unravel this by
    1. In the iCloud contacts page at http://icloud.com, select all the contacts, click on the cogwheel icon at bottom left and choose 'Export vCard'.
    2. Sign out of System Preferences>iCloud
    3. Create a new Apple ID and open a new iCloud account with it for your own use.
    4. Import the vCard back into the iCloud contacts page.
    5. Go to http://icloud.com and sign in with the original ID. This is now his ID. Work through the contacts individually deleting the ones you don't want him to have. When done sign out and advise him to change his password.
    6. Go to the new iCloud account and delete his contacts individually.
    Of course if you have also been syncing calendars and using the same email address there are problems with doing this.

  • Cannot send email from Verizon to a specific domain using the web UI

    I'm trying to send an email to a specific address on a domain I own from a Verizon account using the web UI. Whenever I click send, a popup appears saying "Your e-mail contains the following invalid e-mail addresses:" followed by the email address. I can send email to this address from a GMail account as well as my work email.
    In Chrome, I can see that a "code":1002 error is being produced.
    Does anyone know why this would happen? Does Verizon check destination domains for reputation? Is there any way to debug this further?

    rhodeislandred wrote:
    I'm trying to send an email to a specific address on a domain I own from a Verizon account using the web UI. Whenever I click send, a popup appears saying "Your e-mail contains the following invalid e-mail addresses:" followed by the email address. I can send email to this address from a GMail account as well as my work email.
    In Chrome, I can see that a "code":1002 error is being produced.
    Does anyone know why this would happen? Does Verizon check destination domains for reputation? Is there any way to debug this further?
    What is the domain that is giving you the error?

  • How do I use the Japanese fonts in Font Book in a Pages document?

    How does one use the Japanese fonts in Font Book in a Pages document. Pages has its own fonts but I cannot get the Japanese fonts into it.

    To type japanese on a computer you change the keyboard, not the font.  Go to system prefs/keyboard/input sources and add Japanese/Kotoeri to the list, then select Hiragana in the "flag" menu at the top right of the screen, then type.  The font will take care of itself.
    http://redcocoon.org/cab/mysoft.html
    If you have any further questions, just ask.

Maybe you are looking for

  • How to change CUE ip address?

    Hi, We moved to a new location and using comcast as ISP. I was setting up the phone system today and met a few problems. 1. First of all, all the phones are connected and working(total of 4), but I can only see 3 of them showing up in the CCA. Whats

  • Web gallery images not showing in Firefox

    I have just created a web gallery in Adobe Bridge CS4.  I had it working perfectly in all browsers and now all of a sudden the images are not showing up in Firefox. Anyone else have this problem?

  • Will iBook G4 work without internal HDD?

    I have searched, surfed, browsed, read and read... and more regarding my problem with my iBook... it seems I´m almost lost (without having to pay a couple of hundreds euros)... Basically my iBook started to crash 2 weeks ago. In the beginning I thoug

  • Return to Parent retaining Cache

    Hello, I have a requirement, when i click on link it will open new page by keeping current page as it is.( I have done it using "Target Frame =_blank"). In second page i am querying and getting one value, this is always single value. This is similar

  • Airport Drops my Printer

    I have an iBook running 10.4.7 and a Dell running XP Pro on my airport network, as well as an HP 2110 printer. Things had been running OK, but suddenly I couldn't print to the HP. I tried deleting the printers and re-installing, to no avail. The only