How to replace double quotes with a single quote in a string ?

Hi All:
Can some one tell me how to replace double Quote (") in a string with a single quote (') ? I tried to use REPLACE function, but I couldn;t get it worked.
My example is SELECT REPLACE('STN. "A"', '"', ''') FROM Dual --This one throws an error
Thanks,
Dima.

Whether it is maybe not the more comfortable way, I like the quoting capabitlity from 10g :
SQL> SELECT REPLACE('STN. "A"', '"', q'(')') FROM Dual;
REPLACE(
STN. 'A'{code}
Nicoals.                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • How to store double quote into a string?

    How to store double quote into a string?
    What I mean is:
    suppose I want to save the following sentence into string s:
    What is the syntax?
    Thanks a lot!

    String s = "<a href=\"../jsp/Logout.jsp\">"
    check out this page
    http://java.sun.com/docs/books/tutorial/index.html
    Hope this helps

  • Firefox is replacing double quotes with single quotes.

    In WordPress and at other sites where I input and save text, Firefox is replacing double quotes with single quotes when I save. It's also showing double quotes as single quotes on websites. I tried uninstalling and reinstalling, and it's still happening.

    Do you have the needed font installed?
    *http://en.wikipedia.org/wiki/Punctuation

  • How to replace a movieclip with another movieclip

    How to replace a movieclip with another movieclip
    Hi,
    I am having a swf called tchild.swf... in this i got a
    movclip 'child1'. i am loading this tchild.swf into another swf
    tparent.swf within 'mcloader' movie clip.. i got another movclip
    called 'picture1'
    i am loading tchild.swf into mcloader movclip.. and i want to
    load 'child1' moviclip into picture1..
    how to replace a picture1 movieclip with child1 mc..
    PS: i dont want to load picture1 from library.. its on the
    stage.

    AWT or Swing?

  • How to use Mulitple DAQs with a single triggered event on only one of the DAQs

    I have three PXI6115 and would like to tie all these to a single triggered event on one of the DAQs. I've scaned the examples and any assistance would be greatly appreciated....

    TCjr,
    Please refer to your other post:
    How to use Multiple DAQs with a single triggered event on only one of the DAQs

  • How do I double-click with a track-pad?

    I'm new to Mac, and I just bought a beautiful new Apple MacBook laptop. I'm trying to install academic version of Adobe Photoshop 6 (this disk of software was originally made for PCs but I hear it's possible to make it work on a MacBook as well. My question is, how do I double-click with a track-pad, like in order to install new software from actual disks? I'm a multi-media artist and student, among other things. Thanks!
    Apple MacBook   Mac OS X (10.4.4)  

    Hi -
    Double clicking is done by going to System Preferences/Keyboar and Mouse/Trackpad and then selecting the action you'd like.
    However, PS 6 will be more of a task!
    If it's a Windows disc then you'll need to install a Windows XP on your Macbook either through Parallels or Bootcamp.
    Perhaps another 'Mac Friendly' graphics program might be more suiting if you'd like to stick in with the Mac OS X enviornment. Check out these apps....
    http://pure-mac.com/graph.html
    btw, Bootcamp is free!
    Macbook 1.8-)   Mac OS X (10.4.8)   Week 38 base model w/1G Ram

  • How to replace key value with character

    Hi Experts
    Can any one tell me, how to replace key value with character, whether it is possible are not. My present report is displaying below format.
    country--city-area-flatnocountry--City-Flatno
    Customer--USACOst1111---UK--HD20--
    C100--11---11--
    C200--11---1--
    For the above example format i am able to display. But now i want to replace 1 with character value for example. For C100
    country is USA at presnt 1 but it should replace with USA.
    You find required format below.
    country--city-area-flatnocountry--City-Flatno
    Customer--USACOst1111---UK--HD20--
    C100--USACOst1111--
    C200--UK--HD20--
    thanks .
    Regards,
    Vishal.

    Hi Markus,
    Thanks for reply,
    Actually i dont have attribute for the customer, the data is maintained in ods, in the form, customer name one info-object and customer value one more info-object this value got text. This value stored in the ods as below
    costomer number  customer value
    C100--USA
    -C100CO
    C100--11-
    C200----
    UK
    C200----
    20
    Please let me know any clarification you need.
    Thanks and Regards,
    Vishal.

  • What causes double letters with a single keystroke while in Calendar. I am using vs 10.10.2 with wireless keyboard. Have closed/opened Calendar, switching keyboard off/on, took out batteries on keyboard and have restarted computer.

    What would cause double letters with a single key stroke while adding information to Calendar? Version: 10.10.2  wireless keyboard 27" iMac  3.4 GHz i5. Have restarted computer, have closed/opened Calendar, switched on/off keyboard and taken batteries out/in of keyboard. The problem only happens while typing in Calendar.
    Not sure if I am accidentally hitting an unknown key to cause the problem or if it is a Calendar issue.........paul

    Try changing System Preferences/Keyboard/Keyboard/Key Repeat to a slower setting. Test.

  • My touch screen seems to be stuck in double click with a single touch. Its  been cleaned and restarted several times.   Any suggestions?

    My touch screen seems to be stuck in double click with a single touch. Its  been cleaned and restarted several times.   Any suggestions?

    Try restore as new using computer iTunes.

  • Double Quotes in MaxL Strings

    I am trying to pass in a calc script string from a Perl script to a MaxL script. The calc script needs double quotes around some of the member names (yes, I know I can create aliases with underscores to work around this, but I can't believe this isn't possible). I can escape the double quote characters in Perl, no problem. But the double quotes just get stripped by MaxL. Here is an example:<BR><BR>MAXL> echo 'I am "quoting" this';<BR><BR>I am "quoting" this<BR><BR>MAXL> set X = 'I am "quoting" this';<BR><BR>MAXL> echo $X;<BR><BR>I am quoting this<BR><BR>MAXL><BR><BR>There is nothing in the docs about escaping double quote characters. I've tried using backslash, no luck there. I've tried using double double quotes and they all get stripped. I've tried doing this inside single quoted strings and double quoted strings - no joy whatsoever. The funny thing is the example above, where simply echoing the literal string works, but assigning it to a variable strips out the double quotes.<BR><BR>Does anyone know how to get double quotes into a MaxL string variable? There has to be a way...<BR><BR>Thanks,<BR><BR>James

    Yes, I've dealt with enclosing variables in double quotes in order for MaxL to parse them properly, but what I'm trying to do is use a variable that contains a double quote. Such as:<BR><BR> set QuoteVar = 'I am "quoting" this';<BR><BR>I'm trying to set substitution variables via MaxL, and some of my existing sub vars have double quotes in them so that they can be used to store member names that appear in calc scripts. As I said, I know I can accomplish this with an alias table that creates a version of the member name that doesn't need quotes, but that's a whole deal to maintain just for this one thing and it seems overly burdensome for such a simple task.<BR><BR>Also, as I said, MaxL does fine with double quotes in literal strings, it's only when assigned to variables that it always strips them out. I want to create a relatively generic script for setting sub vars, so I need to pass variables around. Just calling MaxL from Perl and passing in parameters that get converted to $1, $2, etc. causes these double quotes to get stripped.<BR><BR>So, is there any way around this?<BR><BR>Thanks,<BR><BR>James

  • Pass double-quote inside a string via flashvars and SWFObject?

    Hi All,
    Consider some SWFObject code like this:
    flashvars.data1 = "{&quot;requestId&quot;:14979,&quot;email&quot;:&quot;[email protected]&quot;,&quot;zip&quot;:&quot;12345&quot;}";
    flashvars.data2 = '{"requestId":14979,"email":"[email protected]","zip":"12345"}';
    If I host my SWF in IE, FlexGlobals.topLevelApplication.parameters.data1 will be a string, with double-quotes (&quot; entities will be translated to double quotes).  However, FlexGlobals.topLevelApplication.parameters.data2 will simply be the one-character string "{".
    The opposite is true in Firefox. FlexGlobals.topLevelApplication.parameters.data2 will be a string, with double-quotes (&quot; entities will be translated to double quotes).  However, FlexGlobals.topLevelApplication.parameters.data1 will simply be the one-character string "{".
    How can I pass a double-quote in a flashvar using SWFObject that works in all browsers?  I've been searching on this and haven't been able to find a straight answer...
      -Josh

    This works in both IE, Firefox, and Chrome:
    flashvars.data2 = escape('{"requestId":14979,"email":"[email protected]","zip":"12345"}');
    Is that the way to go if you want double quotes in your string?

  • Replacing " (double quote) with ' (single quote)

    Hi there,
    I have the following method to manipulate user input. All I want to do is, to replace the double quote with a single quote. The implementation I tried was,
    this.replace(desc, "\"", "'");
    This does not work for me. It jsut removes the double quote and does not introduces the single quote. Could any one please advise?
    Thanks,
    Des
    public static String replace(String line, String oldString, String newString) {
              if(line != null && oldString != null && newString != null) {
                   int index = 0;
                   while ((index = line.indexOf(oldString, index)) >= 0) {
                        line = line.substring(0, index) +
                             newString +
                             line.substring(index + oldString.length());
                        index += newString.length();
              return line;
         }

    Bad luck.. I am unable to get it still.
    This is the code I am using (implemetation is in a JSP. I am using this code to test it).
    public class Test{
    public static void main(String args[]){
         String s = args[0];
         Test t = new Test();
         String doubleQuote = "\"";
         System.out.println(" output :"+ t.replace(s,doubleQuote,"'"));
         //System.out.println(" output :"+ t.replace(s,"\"","'"));
         //System.out.println(" output :"+ t.replace('"', '\''));
    public static String replace(String line, String oldString, String newString) {
              if(line != null && oldString != null && newString != null) {
                   int index = 0;
                   while ((index = line.indexOf(oldString, index)) >= 0) {
                             System.out.println(" line count :");
                        line = line.substring(0, index) +
                             newString +
                             line.substring(index + oldString.length());
                        index += newString.length();
              return line;
    }mshn02
    The main problem is I am stuck with the server's version of Java (which I have no control on it). I could not use 1.4.2

  • How to pass presentation variable with enclosing single quotes

    HI All,
    As all of you know in 11g, Presentation variable can hold more than one value.So we can pass multiple values to the report through presentation variable.
    If we select x,y,z values from prompt drop down,then those values will be stored like x,y,z in the presentation variable.
    but I would like to store these values with enclosing single quotes like 'x,y,z'
    The reason is I need to pass this variable value as input to BI Publisher sql dataset query where clause.
    Please share your Ideas.
    Thanks,
    Aravind

    Aravind,
    Check this
    Predefined Presentation Variables in OBIEE 11G | Praveen&amp;#039;s Blog

  • How to replace curved apostrophe with straight apostrophe?

    How do I search/replace for curved apostrophe to straight apostrophe?
    How do I search/replace for curved open and close quotes to straight quotes?
    I have smart quotes turned off (which turns ON curved apostrophe).
    The source material was copied and pasted from email which is why the quotes are straight.
    Thanks.

    David, I can't imagine doing anything inside Word is easier.
    Courtesy of Mike Wickham, these are the characters to use INSIDE search/replace boxes:
    You can use these hex values inside the find dialogue. They can be found in the "FrameMaker Character Sets" PDF, which came with your software or can be found online.
    \x22 = straight quote
    \x27 = straight apostrophe
    \xd4 = curly left single quote
    \xd5 = curly right single quote (apostrophe)
    \xd2 = curly left double quote
    \xd3 = curly right double quote
    Typing in the document itself, Esc+" produces a straight double quote and Ctrl+' produces a straight single quote (apostrophe).
    Courtesy of David Artman:
    Curved apostrophe Find: ALT+0146 (’)
    Curved quotes Find: ALT+0147 (“) or ALT+0148 (”)
    After this issue, I googled for FrameMaker Character Sets and downloaded it. That would be my future recommendation for everyone.
    Thank you all for your help!

  • Loading csv file trying to replace double quotes

    Hi, I am trying to load a csv file with a field with double qoutes that I want to replace the double qoutes to one. The CSV file I will enter
    "TEST,2345" in a field and when it loads its as ""TEST,2345""
    So I got this code to handle it.
    Pattern quotesRegex = Pattern.compile("\"\"");
              Matcher m = fieldRegex.matcher(line);
              while (m.find()) {
                   String field;
                   if (m.group(1) != null) {
                        // If a quoted string was matched replace escaped double quote,
                        // "" with "
                        field = quotesRegex.matcher(m.group(1)).replaceAll("\"");
    else {
                        field = m.group(2);
                   fields.add(field.trim());
    I want to change a line like this
    D,,""TEST,2345"",46,,
    to
    D,,"TEST,2345",46,,
    but afterwards nothing has changed the record looks as below
    D,,""TEST,2345"",46,,
    Whats wrong with this?
    thanks

    I simply created a simple csv file with one field that I entered a double qoute of "TEST,2345"
    Later when reading in the file(using the code I pasted in) I can inspect it and its """TEST,2345"""
    The relaceAll doesnt seem to change anything(nor did my code). So I was stumped. thanks

Maybe you are looking for

  • What happens when multiple users access the same servlet?

    Do the users share all the same resources? Or is a new process generated for each user? I have a servlet that builds a string to return to the user and I only have myself to test, so I can't really see what happens when many users access the servlet.

  • Alarm scripts

    Curious, if I'm writing a script to run on an alarm, how do I get the details of the firing event? For instance, a script to speak an alarm: on run      set introText to "Excuse me. It's time for"      (* Somehow get eventText from current active eve

  • Dual Screen monitor Question

    I have desktop split across two monitors(1s a tv) I've already setup Quicktime play in fullscreen on monitor two(tv) but I'd like to be able to have the second monitor turn off after a while when in fullscreen. Is there any setting/plugin/app that'll

  • Using Numbers, I set up a spreadsheet grid but it disappears as soon as I click anywhere. How can I keep the grid?

    Using Numbers, I set up a spreadsheet grid but it disappears as soon as I click anywhere. How can I keep the grid? I have:    iMac with OS 10.10.3;   Numbers 08 ver 1.0.3

  • Spry accordion - div above Tab - positioning moves wrong ?

    Hi, The next point in my site is the text above/in every Tab. The Tab images fades/appears and the text may not fade/appear. So I made a div above the Tab, but of course the text of the second Tab is moving down (becouse the content appears) and is n