Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
3
Answers
how to avoid single quote in sql queary
Khargesh Rajput
10y
905
1
Reply
I have To search data from database.
My query is like as
select * from table where subject like'%'+txtsearch+'%'
and here my textbox has value like ----- teacher's book
this query will give error as syntax error near----- 's
Then how to execute my query,i don't want to remove single quote
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
Hi karthik
deploy the project in C# with Crystal R and Sql server