• Post Reply Bookmark Topic Watch Topic
  • New Topic

Escape Character Help

 
sumeet mittal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my query is
insert into table1 values('sumeet's','query1')
both column's are of varchar datatype
How can i do this.??
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are better of using a prepared statement. It takes care of escape characters
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!