remove the double quotes in a value

DB version: 10g / 11g

Table customer_address
column: adresse_rue
data in the example: 'MLK 1234 drive '.
'dr North 150, st #600'
'o Henry 15678 dr.

Update: reader of MLK 1234
150 north dr, st #600
Dr. Henry o 15678

I'm looking to remove the double quotes (""), if this is the first and the last character.

It would be nice to get these lines with values begins and ends with double-quotes


Thank you for your time

Published by: nydba on March 22, 2012 09:02

One way:

with a as (select '"1234 MLK drive"' x from dual
           union select '5678 JFK drive' from dual)
select a.*,substr(x,2,length(x)-2) from a
where x like '"%"';

X                SUBSTR(X,2,LENGTH(X)-2)
---------------- -----------------------
"1234 MLK drive" 1234 MLK drive        

There is probably a more efficient way with regular expressions.

Tags: Database

Similar Questions

  • How can I remove the double song from my iPhone titles?

    How can I remove the double song from my iPhone titles?

    Hello josephever,

    Thank you for using communities of Apple Support.

    To remove the music from your iPhone, you will need to follow the steps below:

    Remove music

    Remove tracks, albums or playlists in the music app delete all music in the settings.

    Remove the application, music, playlists, albums or songs

    1. Find the song, album, or playlist you want to delete.
    2. Tap the Options icon plus on the right side of the screen.
    3. Press DELETE.
    4. When you are prompted, press Delete [purchased or Playlist] to confirm.

    Delete all the music on your device

    1. Go to settings > general > storage and use iCloud > storage management.
    2. Tap music.
    3. Under the music, by sweeping left on all the songs.
    4. Press DELETE.

    If you delete a purchase that you have not saved on your device, the purchase will also hide your purchase history.

    If you are a member of music from Apple or iTunes subscription game, you might see 'Remove my music' instead of delete. Remove the music from your iPhone, iPad or iPod touch also removes it from your music library to iCloud. If you delete music on a single device, it also deletes other devices. Learn how delete your music to iCloud library media.

    On an iPhone, iPad or iPod touch, if you do not have the music available offline, it is cached by using the available space on the device. The device will delete cache and caching of music, as space is needed by the device.

    Remove music, movies, applications and other content to your iPhone, iPad or iPod touch

    See you soon.

  • Problem with the removal of the double quotes in my channel

    Hi all

    I am trying to replace two double quotes in my thong in double apostrophe.

    < v21:ID schemeAgencyID = "" NGCRM"" >


    I need to convert it to < v21:ID schemeAgencyID = "NGCRM" >


    For that, I use my code as below.

    Input=input.replace("\"\"","\" ");

    but there is no change in the output.

    Kindly tell me the error in the present.



    Thank you
    Sabarisri. N

    Published by: N Sabarisri August 1, 2011 12:20

    Sabarisri N wrote:
    Hi all

    I am trying to replace two double quotes in my thong in double apostrophe.

    I need to convert it to

    For that, I use my code as below.

    Input=input.replace("\"\"","\" ");

    but there is no change in the output.

    Kindly tell me the error in the present.

    Thank you
    Sabarisri. N

    Published by: N Sabarisri August 1, 2011 12:20

    It'll work. Here is the test program

    class StringReplaceTest
    {
         public static void main(String st[])
         {
              String st1 = "";
              System.out.println(" The st1 : "+st1);
              System.out.println(" The out put is : "+st1.replace("\"\"","\""));
    
         }
    }
    

    replace the text makes the sequence checking and replaceAll of character against the regex mill.

  • How to remove the double peak files

    I have too much double peak files and don't know how to find and remove the

    Post proposed by the host to the appropriate forum category (for Windows |) Windows 7 | Music, photos, video & of Windows | Windows 7 | Files, folders, storage &). ***

    Hello

    When you try to delete duplicate images?

    Refer to this:

    Eliminate duplicate files

    http://Windows.Microsoft.com/en-us/Windows-Vista/eliminate-duplicate-files

    (Hold for Windows 7)

    Previous post your answer for you help in this matter.

  • remove the tablespace quota to a user

    Hi all

    I am trying to remove a tablespace quota for a user, how can it be done?

    I tried various 'revoke' orders without success...

    Thanks in advance.

    Hello

    Try this command:

    Edit the db_user user quota 0 on tablespace;

    where db_user is the database user account

    tablespace: is the name of the storage space

    Kind regards

  • replace a single quote with the double quotes with the function replace

    I work with one apex page, which contains a text as a filter box. If I put a single quote and find then I get the error message saying that parse error.

    For this, I want to replace one single quotation mark with double quotes, so this should be perfect. and apex should show the result.

    A allow the query to the same which will replace the single quote with double quotes.

    Published by: Santhosh Kumar T 15 Sep 2008 05:13

    If it was confusing... Try the less confusion (according to you)! ...

    Select Replace ("ab" | ") "|' it," ',' "') twice;"

  • Type arobas (shift + 2) displays the double quotes ("")

    By typing the question, I believe that both keys are reversed. (Shift + 2 screens ", shift +' poster @") This happens on any page via Firefox. The symbols on the typing of each are correct on the pages with internet explorer, as well as in the local produce such as word or excellent.
    Win 7, Firefox 33.0.2

    It is possible that you have activated the keyboard by accident using the sequence of keys to rotate the keyboard layout.

    Windows remembers the setting by application keyboard layout and you have probably changed the keyboard by accident via a keyboard shortcut.

    • Make sure you have the language bar visible on the Windows taskbar
    • You can do this via the context menu of the taskbar: toolbars > language bar
    • Check the language setting (keyboard) keyboard for the application that has focus via the icon in the language bar
    • You need to do that while Firefox has focus because Windows remember the keyboard by application setting
    • The combination of default keys to rotate the disposal is the Ctrl + Shift or Alt + Shift key combination that is used in Firefox to the menu items, so it is quite possible to accidentally changing the layout.
    • To avoid an unintended switch, assign a specific keystroke (Alt / Ctrl + Shift + number) to select keyboard layouts and remove the key combination to rotate (Alt + Shift or Ctrl + Shift) layouts
    • Control Panel > regional and Language Options > keyboards and languages > change keyboards > advanced key settings > change key sequence
  • [DOUBLE] How to remove the double labels SIM in the status bar

    Dual-sim labels takes too much space in the status bar. How to remove or replace the icons?

    Thank you. I will send feedback to sony to advise a new signal icon.

    And I found a plugin xposed published yesterday to remove the tags and it works on my rooted Z5.

  • Help to remove the double scroll bar!

    Having a problem when I export this site on BusinessCatalyst. At first I thought it was only with IE and Mozilla, but it seems that Chrome is also not me...

    I have a double vertical scroll bar when I load the site, it is an example for a future customer, but I can't seem to get rid of the double scroll bar.

    I think that the problem should be with the file global css but still cant fix it! Help

    * edit *.

    http://bgchawthrone.BusinessCatalyst.com/index.html

    Post edited by: Lightbonds * I forgot to add the link

    Thank you for posting.

    You are right, its in the global css file. Please refer to this screenshot: https://screencasteu.worldsecuresystems.com/aish/2013-04-24_2225.png

    I unchecked overflow-y: scroll; and the additional scroll bar was missing, as you can see in the screenshot above.

    If you are comfortable with CSS, you can log into the Admin Panel and fix it from here: https://screencasteu.worldsecuresystems.com/aish/2013-04-24_2230.png

    I hope this helps.

    Kind regards

    Scott Raj Rouanet

  • Remove the double trouble of CLOB

    Hello

    I have a requirement to remove duplicate of CLOB phrases where each sentence is separated by the period and space.

    For example;

    CLOB value: 'Good Morning. Welcome to the new jobs. It is your manager. Welcome to the new jobs. Hello. Here's your first mission. »

    Output should be: 'Good Morning. Welcome to the new jobs. It is your manager. Here's your first mission. »

    Can anyone guide, how can I make it happen?

    Kind regards

    HD

    Read the CLOB

    Process for example single

    WITH T AS

    (

    Select ' Good Morning. Welcome to the new jobs. It is your manager. Welcome to the new jobs. Hello. Here's your first assignment. "double str

    )

    Select listagg (my_sent,'.) ') within the Group (order by rn))

    Select my_sent, rn, row_number () over (partition by order my_sent by rn) as rn1 of)

    Select trim (both ' ' of regexp_substr (str,'[^ \.] +', 1, level)) my_sent, rownum rn t connect by level<>

    ) where rn1 = 1;

    Rewrite the CLOB

  • Remove the exceeded Quota

    I try to erase filled reminders but I get a message saying my 'delete Quota is exceeded' and the application is not running.

    What does that mean?

    Try to connect to your iCloud account, and then sign.

    iCloud: limits for Contacts, calendars, reminders and bookmarks - Apple Support

  • What is the easiest to remove the "double" (type programs not duplicate file finder)?

    What is the easier, more realistic (programs type not duplicate file finder) to delete files 'duplicate '?

    Moved from Internet Explorer (unknown/other)

    Original title: NOT a Finder double file

    Well a double-file-finder is the only realistic way.

    If you don't want to use software to make life easier for you, you could do it the hard way: drag - move all files in the same folder.  If both have the same name, the system will offer to combine by crushing with the other so alone is the surplus.

    Of course, that counts only if the names are the same.  If you don't want to use software to facilitate your work, there will be a lot of work.

  • Prevent the Double quote

    Hi Experts,

    I have an interactive form with a submit button that will call the web service if the user clicks on it.

    The question we had here is that the form will not stop the user to click the button submit twice (or more than one hour).

    As a result, we got double entries.

    Q:

    1. is there a technique (standard) so the user before the form receive any feedback/response from the web service, click the submit button again? I tried to disable/hide the button submit until the form of feedback from the web service, but it does not work.

    Thanks for your time.

    Hello

    The postSubmit event is entered with the specification (Acrobat/Reader v9) XFA 2.8. Blog of John Brinkman:

    You can move the script until the mouseUp event. This is triggered just before the click event. If it doesn't suit, try you coud exit the event, but that would not prevent the user to click once again, before their release.

    Niall

  • Remove the double row of table 2d


    I repeat from memory a technique I've seen for the first time Darin.K use. It's a smart way to exploit the attributes of variant:

  • Replace the string, each value should double quotes around it

    How can I replace this basic string with double quotes around each value?

    dog, cat, john, mark

    I would like to:

    'dog', 'cat', 'john', 'brand '.

    Thank you

    -weStsIdE

    Hello

    I answered my own question. Well nice for someone else. The function ListQualify will insert what you need before and after each element of individual list.

    Actually powerful enough that you can just insert double quotation marks, for example around channels and leave intact numeric values.

    -weStSidE

Maybe you are looking for

  • Deleted the office mistakenly Thunderbird icon; How do I put back it?

    While cleaning my mouse wheel, he was moving on my screentop and deleted my icon for Thunderbird. How to restore the icon on my desktop? My Thunderbird works fine, I just need to put the icon on the screen so I don't have to click to get to my email.

  • Security update 2016-002 could not be verified

    I am running Yosemite 10.10.5.  Was invited this afternoon to install updated system "Security Update 2016-002.  He made a download of 461 MB and then forced a reboot.  After reboot, the update carried out for a few seconds, and then suddenly ended w

  • Please sony MAKE a PROFILE PHOTO DIARY for the FS-100. We need an upgrade

    It's too bad that Sony will not be updated the firmware for the fs-100, giving this machine the S - Log!

  • Drivers for Extensa 4420 - service not available?

    Hi people, I've updated a laptop Acer Extensa 4420 of Vista to Windows 7.  I tried for over a week to download drivers Windows 7 x 64 for this PC, but whenever I select Windows 7 x 64 I get this message: "Service unavailable". For most of my attempts

  • No not from print spooler

    Printers have been working well then all of them I have 5 or 6 disappeared entered service print spooler is stopped I tried to restart manually did not have defined parameters still auto does not work. Mr. Fix It won't work either! Error 1068