I have a problem with this insert
query in SQL Server 2008
insert into Book values('B0000001I002','C# 3.0: A Beginner's Guide')
How do I make SQL ignore the single-quote in C# 3.0: A Beginner's Guide
?
I have a problem with this insert
query in SQL Server 2008
insert into Book values('B0000001I002','C# 3.0: A Beginner's Guide')
How do I make SQL ignore the single-quote in C# 3.0: A Beginner's Guide
?
This question was asked before and the answer is to escape the '
by doubling it:
INSERT INTO Book VALUES('B0000001I002','C# 3.0: A Beginner''s Guide')
you can do it using escape sequence
Check:
Try
insert into Book values('B0000001I002','C# 3.0: A Beginner\'s Guide')