Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

" in SQL 1

Status
Not open for further replies.

smash81

Programmer
Mar 12, 2001
88
KE
Hello,
I need some help on how to put a " in my string.How do i escape this as the query does not work.
For example how would i say
str="select * from table where name="abc""
 
In SQL you wrap char values with single quotes not double quotes, so you query should be...

str="select * from table where name='abc'"

If you do need to use " in a string for whatever reason, i think you need to put 3 of them for VBScript to use 1, like this...

Response.Write "I Said """Hello There""" to him."

I think!

Gee -GTM Solutions, Home of USITE-
-=
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top