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
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Well
it works when I double it!! Thanks a lot to \0 and seanowens.
it works when I double it!! Thanks a lot to \0 and seanowens.