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

How sql query accept an apostrof value?

Status
Not open for further replies.

assimang

Programmer
Mar 11, 2008
96
0
0
Hello everybody,
I have a table in my sql data base, and the field type CharValue is nchar(1) which means that accepts characters.
In a record the value of CharValue is the character "'"
And that gets me in trouble when I try to execute the query

sql = "Select * from KbrdCharacters where CharValue='''"

What can I do to accept it?

Thanks anyone
in advanced.
 
solved. I set 2 apostrofs and its ok

sql = "Select * from KbrdCharacters where CharValue=''''
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top