Link to home
Start Free TrialLog in
Avatar of rickyr
rickyr

asked on

Apostrophes break my query?

Hi......
I'm using Perl-DBI to extract data from Oracle.
My selects and inserts have apostrophes in them.
This breaks my sql statement with...........
"quoted string not properly terrminated."
help, the same happens when I try and escape the \' in sqlplus.
cheers
Avatar of davdonin
davdonin

If you want an apostrophe inside of your statemnt you have to double them, e.g: 'this ''is a'' string with ''apostrophes'''.
Hope this helps.
ASKER CERTIFIED SOLUTION
Avatar of dbalaski
dbalaski

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rickyr

ASKER

Answer accepted
Avatar of rickyr

ASKER

Thanks, see my new Q about loging users out!