Subject | Re: [firebird-support] Re: Querying for words with special characters |
---|---|
Author | Helen Borrie |
Post date | 2006-03-14T02:20:24Z |
At 01:10 PM 14/03/2006, you wrote:
SELECT * FROM CONTACTS WHERE COMPANY CONTAINING 'Alice''s'
SELECT * FROM CONTACTS WHERE COMPANY STARTING WITH 'Alice''s'
./hb
> > Use an extra ' as an escape characteruse CONTAINING or STARTING WITH:
> >
> > select *
> > from employee
> > where firstname = 'Alice''s';
> >
> > (That is two apostrophies not a double quote character)
> >
> > Adam
> >
>
>I tried the two apostrophes, but didn't get any records.
>
>My data looks like this: Alice's
>My SQL looks like this: SELECT * FROM CONTACTS WHERE COMPANY = 'Alice''s'
SELECT * FROM CONTACTS WHERE COMPANY CONTAINING 'Alice''s'
SELECT * FROM CONTACTS WHERE COMPANY STARTING WITH 'Alice''s'
./hb