Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Safe to allow ' character in varchar fields?

Re: Safe to allow ' character in varchar fields?

From: Robert Staudach <robert.staudach_at_nextec.at>
Date: Wed, 03 Feb 1999 14:19:37 +0100
Message-ID: <36B84CE8.C2A9B8A6@nextec.at>


Hi Adrian!

I store names like D'AMBROSIO or O'NEAL since '96 in a VC2(100) field, no problem!

Select:
WHERE mycol LIKE '%''%'

Robert

Adrian Harrison schrieb:

> I have a request by users to allow ' in varchar2 fields
>
> At the moment I stop them entering this character as it's used to denote strings
>
> Is it safe to allow it to be saved in to these fields or not?
>
> Also how would you do an SQL wild card search on field that contain wildcard characters?
> Is this the way to do it "select * from mytable where mycol like '%%'; ?
>
> Thanks
>
> Adrian Harrison
Received on Wed Feb 03 1999 - 07:19:37 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US