fletchsod
Programmer
- Dec 16, 2002
- 181
How do you guys deal with quotes in SQL Query for DB2??
When I use this query..
--snip--
INSERT INTO CUSTOMERS1 ( CSTM_COMPANY_NAME )
VALUES ('Baltimore\'s Collections')
--snip--
I get the
--snip--
SQL0010N The string constant beginning with "', '')" does not have an ending string delimiter. SQLSTATE=42603
--snip--
error. So, how do you guys do the escape the quote query for single quote and double quote??
Thanks...
When I use this query..
--snip--
INSERT INTO CUSTOMERS1 ( CSTM_COMPANY_NAME )
VALUES ('Baltimore\'s Collections')
--snip--
I get the
--snip--
SQL0010N The string constant beginning with "', '')" does not have an ending string delimiter. SQLSTATE=42603
--snip--
error. So, how do you guys do the escape the quote query for single quote and double quote??
Thanks...