How do I setup a query while looking for a record with an apostrophe in it?

Lopez, Ahiezer 236 Reputation points
2023-09-07T17:33:47.6366667+00:00

How do I setup a query while looking for a record with an apostrophe in it?

User's image

SQL Server | Other
0 comments No comments
{count} votes

Answer accepted by question author
  1. Bruce (SqlWork.com) 82,061 Reputation points Volunteer Moderator
    2023-09-07T18:11:17.6133333+00:00

    You just quote it with a ‘

    select *
    FROM tbImacoonew
    WHERE [COMPANY NAME] like 'Andersen''s Industries Inc'
    
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.