Link to home
Start Free TrialLog in
Avatar of jufer
jufer

asked on

SQL Problems on VC5.0 with ODBC

Hi experts,
I'm looking for the syntax of the sqlstatments that have a ' in the data.
My table has a Entry in Hive like this : [ULM\Dr.Salomon's]
my SQL-statments : SELECT * FROM RegistryEntry WHERE Hive = '[ULM\Dr.Salomon's]';

but the problem is the ' in Dr.Salomon's
what the solution ?
Thanks
jufer
Avatar of seanowens
seanowens

Try doubling the single quote.  As far as I know, in normal SQL statements (not under vc5.0/ODBC) thats how you escape the single quote.  I've done it before under different development platforms.
ASKER CERTIFIED SOLUTION
Avatar of NullTerminator
NullTerminator

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 jufer

ASKER

Well
it works when I double it!! Thanks  a lot to \0 and  seanowens.