How to search the location of the single quote using instr func in a string

I have a string '345634','234'(all 4 single quotes are part of the string) and I want to find the location of the 3rd single quote using the instr function , could sum1 quickly please help me out.
Regards
Rahul
Edited by: Rahul Kalra on Aug 26, 2010 8:58 AM

Carlovski wrote:
You really do learn something new every day!
It really is quite ugly syntax though.Not really. You can use whatever character you want to indicate the start and end of the string, but if you use any of the brackets "[", "(" or "{" you should terminate using the opposing bracket "]", ")" or "}" respectively. It also looks a bit more ugly with data like that, but if you are entering regular text then it looks ok...
e.g.
SQL> select q'[This is my string with fred's quotes in it]' as mystring from dual;
MYSTRING
This is my string with fred's quotes in it
SQL> select q'(This is my string with fred's quotes in it)' as mystring from dual;
MYSTRING
This is my string with fred's quotes in it
SQL> select q'{This is my string with fred's quotes in it}' as mystring from dual;
MYSTRING
This is my string with fred's quotes in it
SQL> select q'.This is my string with fred's quotes in it.' as mystring from dual;
MYSTRING
This is my string with fred's quotes in it
SQL> select q'#This is my string with fred's quotes in it#' as mystring from dual;
MYSTRING
This is my string with fred's quotes in it
SQL> select q'`This is my string with fred's quotes in it`' as mystring from dual;
MYSTRING
This is my string with fred's quotes in it
SQL>Well... almost any character...
SQL> select q'¼This is my string with fred's quotes in it¼' as mystring from dual;
ERROR:
ORA-01756: quoted string not properly terminated

Similar Messages

  • How can I change the location for the backup from iphone to itunes?

    How can I change the location for the backup from iphone to itunes? I want to backup to my external harddisk and not the computer itself. How do I do it?

    Moving the iOS device backup location
    Open a command prompt by hitting the start button and typing CMD<Enter> in the search box that opens up, or with Start > Run on older Windows.
    To move the current backup folder from C: to D: (for example) type in this command and press <Enter>
    Move "C:\Users\<User>\AppData\Local\Apple Computer\MobileSync\Backup" "D:\Backup"
    Where <User> is your Windows user name.
    To make iTunes look for the data in the new location type in this command and press <Enter>
    MkLink /J "C:\Users\<User>\AppData\Local\Apple Computer\MobileSync\Backup" "D:\Backup"
    If your preferred drive has a different letter or you already have a folder called "Backup" then edit "D:\Backup" accordingly in both commands.
    If you have Windows XP then you'll need a third-party tool such as Junction to link the two locations together instead of the MkLink command. The source folder is C:\Documents and Settings\<User>\Application Data\Apple Computer\MobileSync\Backup
    tt2

  • I have problem with Itunes losing where podcasts and some purchased music is located. Don't know how Itunes losing the locations of the files and I can't find the files on my hard drive. What can I do to stop Itunes losing location and restore my files?

    I have problem with Itunes losing where podcasts and some purchased music is located. Don't know how Itunes losing the locations of the files and I can't find the files on my hard drive. What can I do to stop Itunes losing location and restore my files?

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • HT1364 I have moved my library to an external hard drive and changed the location of the iTunes media folder in Preferences, but every time I close and re-open iTunes, I have to do it all over again.  How can I make the iTunes media folder change permanen

    I have moved my library to an external hard drive and changed the location of the iTunes media folder in Preferences, but every time I close and re-open iTunes, I have to do it all over again.  How can I make the iTunes media folder change permanent?  I have an older machine with Windows XP.

    I don't believe mounting the hard drive should be necessary, unless you have several external drives and want your computer to recognise them as folders, rather than drives. I've never had to mount a hard drive, ever. If you don't know how to do it, then it shouldn't be necessary now.
    Try this:
    Prepare iTunes so that it can see the external drive.
    Make a note of which drive-letter the external drive has been allocated. (Look in Windows Exploer)
    Look at the file location for a song. Make sure it plays (and therefore that iTunes has found it). Highlight it and select File/Get Info/Summary>Where: and make a note of the drive letter for that song.
    Close and shut down the computer.
    The next time you turn the computer on again, connect the external drive
    Before you start iTunes - check the external drive in Windows Explorer. Is it ready, does it have the same drive-letter that it had last time? Can you go into the drive and see the files on it?
    Once you can, start iTunes. (If the drive lettter has changed, you need to work out why before going any further.)
    If iTunes fails to find your external drive, you need to check where iTunes is looking for your Library.
    Select the same song you checked before (presumably iTunes can no longer find it). Follow the procedure for locating it. You should be able to see where iTunes thinks the file is. It's the drive that counts. Which drive letter is iTunes looking at? Is it the same one that it was previously (which should also be the same one that the drive has now).
    What happens, which step do you have problems with?
    Message was edited by: the fiend

  • How to search a term in the source code

    Hello ,
       How to search a term in the source code. I have selection screen , on which a program name will be given and term to search. How can I proceed to know whether this term is available in the source code of the program
    Thanks and regards,
    Satya

    Hi naga,
    1. one option is to retrive the source code of the requried program,
       into internal table using the syntax READ REPORT (just see f1 help on it)
    READ REPORT prog INTO itab [MAXIMUM WIDTH INTO wid].
    2. Then we can loop / search the internal table for the required term.
    regards,
    amit m.

  • How can I find the location of the signature used in the Adobe Reader signature feature?

    How can I find the location of the signature used in the Adobe Reader signature feature? I've been using the signature feature for a while now and it works great and I'd like to use it on another computer. However, I forgot where I stored the signature. Adobe finds it with no problems (the signature pops up when I click "Place Signature"), but I have no idea where it is.

    Hello,
    It's here - C:\Documents and Settings\username\Application Data\Adobe\Acrobat\10.0\Security\
    For more information, please refer - Cannot create a digital ID/signature
    ~Deepak

  • How to get the location of the browser?(pt_BR, en_US, es_ES...)

    How to get the location of the browser?
    example: pt_BR, en_US, es_ES...

    Hi Eduardo Cordeiro,
    Sorry in reaching you late...I was out on a trip...
    You need to put the javascript in your Flex application html wrapper file ...in which your  Flex application SWF is embedded.
    Write the Javascript function in your html file as below :
    function getBrowserLanguage()
      var browserLanguage = navigator.browserLanguage;
      return browserLanguage;
    //In your mxml File you can access the JavaScript function in your MXML as below:
    var browserLang:String  = ExternalInterface.call('getBrowserType');
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • I've lost a load of notes, but dont know why or how to get them back. I cant find the folder that is in my Yahoo account that people have suggested might be the location for the messages.  I recently signed into iCloud for the first time.

    I've lost a load of notes, but dont know why or how to get them back. I cant find the folder that is in my Yahoo account that people have suggested might be the location for the messages.  I recently signed into iCloud for the first time.  Any idea how to get the notes back?   I really dont want to lose them.

    It should keep asking for the password, because it's trying to check for purchases... As soon as you login, it will see you have pending downloads and create the downloads section on the left below Purchases under the Store section. Then it will start the music downloads there, as they will be listed one below the other.
    You could just try to check your account balance or view your account and that will trigger a password request too. You can just click on that and say that now iTunes keeps asking for the password and ask him to help you with that. Trick would be to interrupt him so that he carries on with another task after, so he doesn't notice the download. Or you carry on with email or browsing which you were "busy" with when iTunes interrupted you for the password (stupid iTunes)

  • How to get the location of the last click.

    What I can't seem to figure out how to do is get the location of the last click. I'm not setting anything by using the click im using the click to test boundaries. Basically if I click within this area this happens if i click within this other area something
    happens, etc. Thanks for your help! Also feel free to say an easier way to do this if you know one.

    Your description about your issue is very vague but you could for example handle the MouseLeftButtonDown event for the "area" and then use the MouseEventArgs.GetPosition method to determine the coordinates of the mouse click relative to some element,
    e.g.:
    private void Canvas_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
    Canvas canvas = sender as Canvas;
    Point p = e.GetPosition(canvas);
    double x = p.X;
    double y = p.Y;
    <Canvas Height="100" Width="100" Background="Red" MouseLeftButtonDown="Canvas_MouseLeftButtonDown">
    </Canvas>
    Please remember to close your threads by marking helpful posts as answer and please start a new thread if you have a new question.

  • How to get the location of the JMenuItem on the screen in actionPerformed

    How can I get the location of the JMenuItem on the screen in actionPerformed.
    When I use the function getLocationOnScreen() on JMenuItem or the object retruned by getComponent() I get IllegalComponentStateException.
    I have figured out that inside actionPerformed the parent of the JMenuItem which is JPopupMenu (that contains the JMenuItem) is not visible anymore (its isVisble() function returns false).
    Then how can I get the location on the screen of the JMenuItem or it�s popup menu such that I can use it in subsequent call to SwingUtilities.convertPoint(JMenuItem, int x, int y,frame), as I need to display a modal dialog box relative to the position of the popup menu in it�s frame.
    Regards,
    Janusz

    Thanks for reply.
    Unfortunately I have to figure out the location of the menu from within actionPerformed handler. At that point of time it is too late to overwrite JMenuItem. I probably could do some severe surgery in the code to implement my own JMenuItem derived class & overwrite processMouseEvent and pass the location attribute somehow to actionPerformed handler � but I am looking for some solution that would not require changes to the code outside actionPerformed handler.

  • How to get the location of the caret?

    Hello
    I want to get the location of the caret. Not the offset of the document.
    I have tried the Caret.getMagicCaretPosition(), but I think it gives me a point in viewport.
    How can I get the absoult location of the caret(the location on screen ,not in viewport)?
    Thank you very much.
    Best wishes

    Thankyou ,You reply seems to help me ,but I am still confused that this method returns void ,how can I get the result of the point on screen?
    When I want the caret location (the caret belongs to a JTextPane) on screen, I invoke :
    SwingUtilities.convertPointToScreen(textPane.getCaret().getMagicCaretPositon(),textPane);
    but how can I get the result of the convertion?
    Thank you!

  • How can i designate the location of the purchased music from itune store?, how can i designate the location of the purchased music from itune store?

    how can i designate the location of the purchased music from itune store?, how can i designate the location of the purchased music from itune store?

    Hi,
    Thanks.  I know how to do that, however, I thought it only works with the imported content not the purchased ones.  The reason for wanting this was that I keep all my music in NAS drive for SONOS (the wireless music system) will need the music to be in NAS so that it can play music while the mac is on sleep mode.
    Anyhow, I will try again and let you know if it does work.
    Thanks again.

  • How can i disable the location for the camera with ios 6? since the update i cannot find out how to do this. i always have locations for my camera disabled for safety reasons. please help!

    Please help! I upgraded to ios 6 today and I cannot find out where to disbale the location for the camera. I DO NOT want my pictures to be geotagged or have any type of location marked on them for safety reasons. Does anyone know how to disable it? Please help and thank you!

    Bro try Setting then scrool down choose privacy then you find location service there you can turn off location service for camera. Gbu

  • I just downloaded FF4 and now the "SEARCH" tab located at the center of my home page isn't functional. I unisntalled and reinstalled but the result is the same.

    Question
    I just downloaded FF4 and now the "SEARCH" tab located at the center of my home page isn't functional. I uninstalled and reinstalled but the result is the same.

    I think what I did was right clicked on the toolbar when I went to the tab and properties to find out the name of it. I then opened the extensions and add-ons and found what it was there (I don't remember the extension)., You will find the mess involves the homepage tab you have. Click on your tool bar for customization and put the home page away. This doesn't remove it but it will stop bing from showing up. Instead, my tabs now go to a Google page but I can't put in a homepage. Instead I bookmarked Google to my menu bar and when I open a tab I just click that! Cheaper than a trip to a computer vet.
    The only option you will have is to remove google, but if you do, you loose all your goodies. Though I did not try this myself, I fear saving your tabs,bookmarks , etc. will store with it, whatever this bing thing is. Hope this helps

  • How do I change the location of the coldfusion-out.log and coldfusion-error.log files in CF10

    When I change the log location in ColdFusion Administrator it changes the location of most but not all the log files.  I have a requirement from my customer to place all log files on a separate partition on the server.  For ColdFusion 9 I was able to modify the registry settings to change StandardOut and StandardErr for the ColdFusion Jrun service.  This does not appear to the case for ColdFusion 10 which now uses Tomcat 7.
    I tried modifying log4j.properties file and was able to relocate the hibernatesql.log, axis2.log, and esapiconfig.log but not the coldfusion-out.log.
    I am running ColdFusion 10 Enterprise Edition on a 64-bit Windows 2008 Server.

    The location of the rest of the ColdFusion logs can be changed in the ColdFusion Administrator.  Go to the Debugging and Logging section, Logging Settings.  There is a form at the top of the page where you can change the log storage location.
    -Carl V.

Maybe you are looking for

  • Customer payment analysis

    If a business kept 3 agent who is collected payment for 3000 customer then how we can check the report for each agent wise that  how much  outstanding collected & how much peneding for that 3000 customer.Please give me the solution. Thanks, Miku.

  • HT204291 Have sound but no picture

    I have sound but no video on my tv using apple tv,  I am using an iPad to send to apple tv

  • Risk Management Dump

    Hi everybody, Im working with GRC-RM and when I try to create a Risk, Activity or Response I get this same  dump in all cases with the following error. Any help or suggestion will be very useful. The URL http://xxxxx.xxx.xxx.xx:8000/sap/bc/webdynpro/

  • Prioritizing Addresses

    This has got to be simple, but I can't figure it out. Many of the people in my Address Book have multiple email addresses. If I want to write to one of them I simply choose which address I want to send to from a pulldown menu. But if that person is i

  • Adobe Photoshop Elements 13 full version bought January 2015,

    Photomerge - Panorama is not working