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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WHERE clause 1

Status
Not open for further replies.

stubing

IS-IT--Management
Feb 23, 2002
1
CA
trying to solve this situation:

SELECT * FROM tblname WHERE fldname='ryan's question'


there is a nested single quote in my literal string which is causing the query to fail, I'm sure there is a simple solution for this problem yet it illudes me.
 
You may try :
double quotes :
SELECT * FROM tblname WHERE fldname="ryan's question"

OR
two single quotes
SELECT * FROM tblname WHERE fldname='ryan''s question'

Let me know if it worked.
 
The second example works well :)
Andel
maingel@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top