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

Use of ' in a field value

Status
Not open for further replies.

Sashanan

Programmer
Jan 19, 2001
235
NL
I recently found that, since SQL uses single quotes (') to mark text fields, problems arise when a ' is in that field. Is there any way to save a single quote (among different characters) in a text field without confusing SQL? I'm using MS SQL Server 7.0, in case it makes a difference.

Thnx in advance!


Example of non-functional query:

INSERT INTO Company(com_name)
VALUES ('Danny's Pizza')
 
Please refer to FAQ entitled

How to Query Strings

Hope this helps,

Chris Dukes
 
Yeah, I had found it. Now to figure out the proper VB routine to convert ' to '', but I should be able to do that.

Thnx to you both!
"Much that I bound, I could not free. Much that I freed returned to me."
(Lee Wilson Dodd)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top