DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Escape Character in SQL

  1. #1
    Join Date
    Dec 2001
    Location
    Keene, NH
    Posts
    510
    Oracle 9i

    Is there a way (an escape character) to get a tick in the selection criteria without getting the error:
    "ORA-01756 quoted sting not properaly teminated"?


    For example
    select 'Ted's assignment' from dual;
    Don't blame me, I'm from Red Sox Nation.

  2. #2
    Join Date
    Apr 2001
    Posts
    118
    Use two single tics to escape it.

    Code:
    select 'Ted''s assignment' from dual;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width