Check out example codes for "SQL Server escape single quote dynamic SQL". It will help you in understanding the concepts better.

Code Example 1

select 'that''s it'

Learn ReactJs, React Native from akashmittal.com