Re: Insert an apostrophe into a string?

From: Guy Bassan <gbassan_at_unm.edu>
Date: 1996/08/08
Message-ID: <320A61BC.2781E494_at_unm.edu>#1/1


Martin Pammer wrote:
>
> Use the SQL Function chr() for this.
>
> chr(10) gives you a newline
> chr(39) gives you an apostrophe
>

You can use two tick marks. For example,

   SELECT '''' from dual;
would return a single tick mark. It is exactly like

   SELECT 'X' from dual;
except that the X has been replaced by ''.

  • Guy Bassan
  • Los Alamos National Laboratories
Received on Thu Aug 08 1996 - 00:00:00 CEST

Original text of this message