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

insert and ' 1

Status
Not open for further replies.

help120

Technical User
Joined
Apr 15, 2001
Messages
198
Location
US
I'm having problems inserting info into one of my tables. This is my string.

a1,id,a2,ltptype,a3,question,a4,answer,a5
('', 'test's', 'AssignmentIssues', 'AssignmentIssues teset')

As you can see test's has a ' and it causes an error when trying to insert the info. How can i correct this? Do I need to put // in front of it or some thing?
 
Yes, you need to escape the ' with a \, making it \'.

//Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top