Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Inserting values that have single quotes
Hi There!
A single quote is the only way to delimit character string constants. Therefore, other than having two single quotes within the character string in order to represent one single quote is there any other way to enter items into the database that have a single quote in the text (in SQL)?
For example, in order to input a last name of O'CONNOR into
a table you would have to have:
INSERT INTO TABLE1 VALUES ('O''CONNOR')
is there any other way to put this value into the database without
having to add the extra single quote in the name?
Any help at all is much appreciated!
Don Pendergast
pendergd_at_ohiou.edu
Web Analyst/Programmer
Ohio University
Received on Wed Mar 24 1999 - 07:49:45 CST
![]() |
![]() |