How to query if you have apostrophe

how to query if you have value with apostrophe ' like o'reilly
select * from users where name ='o'reilly'
it throws an error
any help is much appreciated
thanks

Use an 'escape' quote:
select * from users where name ='o''reilly';
SQL> create table t as select 'o''reilly' name from dual union select 'kyte' from dual;
Table created.
SQL> select * from t;
NAME
kyte
o'reilly
2 rows selected.
SQL> select * from t where name = 'o''reilly';
NAME
o'reilly
1 row selected.
edit
Too bad my stupid ancient PC got stuck once again... argh
Edited by: hoek on Jul 8, 2010 8:15 PM

Similar Messages

  • How many playlists can you have or create

    how many playlists can you have or create

    There is no documented limit. 
    Note that Smart Playlists with Live Updating use extra processing, so if you have more than a few dozen of them you may notice a slowdown.
    Some people think they should create a playlist for each album.  If by any chance that is the reason you are asking the question, you will find it is much easier to get to an album via the column browser.

  • How many libraries can you have in i photo?

    How many libraries can you have in i photo?

    gussie88 wrote:
    Was she satisfied eventually!!! haha If you export and import photos to a new library, do faces -places etc transfer too? Thanks
    Yes, I believe they do.  The places data is associated with GPS coordinates tagged on each photo.  I think the faces data works the same way -- it is associated with each photo regardless of what album it is in.

  • How many tasks can you have in a plan?

    How many tasks can you have in a plan?
    What is the maximum number of tasks I can reasonably expect to have in a newScale service (version 2007)? 
    I have approximately 30 tasks in my service.  When the authorizations are complete, and the tasks are initially scheduled, my server response time (between clicking Approve and seeing the next screen) is about 30 seconds. 
    Does this sound unusual?  Am I trying to do too much with my service?
    Thanks!

    Hi Joe,
    There is no "upper limit" on the number of tasks that you can have in a plan. Having said that, the complexity of a plan -- including conditions and the use of external tasks -- can certainly be a factor in response times.
    Having said this, 30 seconds seems like a long time and I strongly suggest that you open a case with customer care on this item.
    We have alerted them to be looking for a case from you.

  • How many Collections can you have in iBooks?

    How many Collections can you have in iBooks?  I have many and now I'm unable to add more collections.  Is there a way to add more collections/shelves?

    Hi Joe,
    There is no "upper limit" on the number of tasks that you can have in a plan. Having said that, the complexity of a plan -- including conditions and the use of external tasks -- can certainly be a factor in response times.
    Having said this, 30 seconds seems like a long time and I strongly suggest that you open a case with customer care on this item.
    We have alerted them to be looking for a case from you.

  • How many lines can you have on a nation wide talk and text plan?

    How many lines can you have on a nation wide talk and text plan?

    A max of five lines is allowed on the Nationwide Talk & Text family plan.

  • How many devices can you have on 1 icloud account

    how many devices can you have on 1 icloud accout?

    It's unusual for a whole family to use the same icloud account, since that way everyone gets the same emails, contacts, calenders, etc.  All it takes is one family member to delete a contact by mistake and then it will be deleted from everyone's devices.  Not good.  The usual advice is for every individual to have their own icloud account.
    The iTunes store is another issue - everyone can use the same Apple ID to access the same itunes account to download music, apps, etc. without everyone having to buy the items multiple times.

  • How do I rectify "You have been signed out" error

    How do I rectify "You have been signed out" error

    One fix for signout problems http://forums.adobe.com/thread/1408331?tstart=0
    -http://helpx.adobe.com/creative-cloud/kb/unable-login-creative-cloud-248.html

  • How do you know how many duke dollors you have?

    how do you know how many duke dollors you have?

    you click on your name and it should show you how many duke dollars you currently have...

  • How many times do you have to pay for Creative Cloud complete plan prepaid if it says an amount of money per year? do you have to pay that every year?

    how many times do you have to pay for a Creative Cloud complete plan prepaid if it says an amount of money per year? do you have to pay that every year?

    Perhaps the unclear part here is that the Cloud is a subscription offering. You never pay for it outright and never actually own it.
    12 months pre-paid simply means paying the full 12 months subscription upfront. The following year, you do the same. And the same every year after that.
    Like any subscription, if you want to keep using the software, you keep paying the monthly (or annual) fee every month (or year), year in, year out.
    When you cancel your subscription, or it expires and you don't renew, then the software stops working.

  • How many albums do you have?

    How many albums do you have? How much variation do you have between albums?
    I have so many pictures I'm having a hard time deciding on how to setup albums.

    John,
    I don't have a lot of albums. There's no one-to-one correspondence between photos and albums, so I choose not to use them as my main organizational scheme. I prefer working in Library view, where I do get each photo once and only once. (I use V6 Film Rolls, which is the same as Events in '08.) When importing photos, I place them in my most recent, current roll (event) or begin a new one. Then I keyword all of the new photos, and they're good to go. Working chronologically makes sense to me, and I pretty much remember where my photos are. In addition, I can find any photo or group of photos in my library by filtering by keywords and date.
    I use albums for special collections and projects. I have some smart albums for the best photos of my kids' birthdays. I gather photos into albums to prepare for printing. I also create albums for the purpose of adding slideshows to my home movies in iDVD, and to use as title frames in iMovie.
    That's just my system; it works for me. iPhoto is so flexible and powerful that in time you'll find one that works for you.
    Regards.

  • How many times do you have to click the sleep/wake button to get the light brighter? (on iPod touch)

    How many times do you have to click the sleep/wake button (top button) to get the light/screen brighter? (on iPod touch)

    That is not haow you change brigntness. Go to Settings>Brightness to adjust screen brightness.

  • On average, how many times do you have to restart ...

    Ever since I've been using the E71 (less than a month, a new set), I have to restart it about thrice daily. Mostly, the problem occurs while connecting the phone to the PC (Windows 7) when the USB connection type selector on the phone (which appears when you connect the cable and asks for which mode to connect in) freezes; but some other times, just about any application (including the built-in ones) decides to take a nap and the only way to get it back is turn the set off and then back on again. And as soon as that is done, the app icons are all moved back from the customized folders to the folder "Installations" - very frustrating. I'm afraid of restarting this phone as lots of settings and app icons revert back to the defaults after restarting and I've to go through them again. But at the same time, there seems to be no way to make a stuck USB connection type selector work again without restarting.
    Well, from my experience here, I know this particular problem has no solution. (Even if the process is ended using an external app manager, it hangs again on starting the app. This continues until the phone is restarted.) Therefore, I'm not looking for a solution here, although one will be welcome if you've undergone the same and have found a workaround. I just wanna know if you do also have to restart your phone. (I also have one Sony Ericsson and an iPhone; I don't generally need to restart them as long as I don't want to restart. At my current place, however, a Nokia phone is all I can use.)
    So, do you have to restart your phone when you don't actually want to? If so, on average how many times a day (or a week)? This will help me determine if the problem lies with the phone or it's me who's doing something differently. Is there something you need to do regularly or often (like connecting the phone to the computer) and that operation generally results in a restart of the phone? Thank you for your response.

    Yes I have apps installed on the SD card. Shifting them to the internal memory is not really an option (would leave very little free space over there which would then cause other problems). Besides, if the phone allows you to install the apps on the card, shouldn't they work from there? Yes, they should.
    Without the card, there will be no custom apps and the phone would be almost useless (will turn into a basic device used to make calls and send text). To me, this is not an option. Also, I don't see how it would solve the problem automagically after some time.
    The card doesn't seem to be faulty. I tried to connect the phone without the card inserted and it got connected alright for two times but the USB mode chooser froze the third time, just the same as with the card inserted. So a new card is probably not going to solve the problem.
    Must be something strange happening here. Maybe it's due to the apps installed on the card rather than the internal memory, but I just cannot install all those apps within that limited space.
    Thanks for the feedback. I'm waiting for more members' experience to come to any conclusion.

  • How many lines can you have?

    how do get the two family plans or separate individual line?

    Not sure what the question is ... if you have a Share Everything plan, you can have up to 10 lines of service; if you have a Nationwide plan, you can have up to 5 lines of service.

  • How many playlists can you have in iTunes

    How many playlists (folders) can you have in iTunes.
    I have a lot of music in iTunes and would like sort them out so it is easier for me to use
    Eg 1 x folder for now 83
    1 x folder for now 82
    1 x folder for mash ups
    Then weekly folders so probably looking at about 100+ folders
    Can this be done
    Cheers

    In iTunes playlists and folders are two different things.  I assume you are asking about playlists.  100 will not be a problem.
    However, it is unnecessary to create a playlist for Now 82.  If the tracks are properly tagged, it will show up as an album.

Maybe you are looking for

  • Thinkpad Yoga microphone not working

    I've just recently recieved my brand new Thinkpad Yoga, and everything seems to be ok except the microphone. Under Recording Devices of Windows 8.1, the meter is showing no activitiy even with the boost and volume turned right up. Apps like Skype etc

  • Hi downpayments- withholding tax

    Hi Gurus, i updated the vendor master record with withholding tax invoice and payment detials. i deducted withholding tax in case advance and invoice also. i adjusted that in f.54. Now  i want make payment to vendor, the withholding data regarding pa

  • Best monitoring tool

    Well here we are, my application is ready for distribution, now i would like to know what is the best free monitoring tool for a coldfusion server? I found the metrics data in the coldfusion server, but i would like to have some more monitoring infor

  • How do I stop the "Mozilla Firefox Start Page" from loading everytime I start Firefox? My home page is opening AND the (totally useless) 'start page'.

    Just installed Firefox on my second Windows machine (running XP Home). Unlike my other installation, every time I start Firefox I get TWO tabs - my home page AND a "Mozilla Firefox Start Page" that contains only a Google search input. I don't need th

  • Error when I am executing any method in shopping cart

    Dear All , I am getting following error when I am executing any method in shopping cart. *"No data found for contact person 0000000244 . Inform system administration . "* Please Can you help me with this error .