I am trying to manually add a item into my table in SQL Server by using insert into statements, but I get an error.
Normally a string is added using a single apostrophe in front and back of the string in SQL Server, but I am adding a value which has an apostrophe in between (like can't), how to add this in the T-SQL insert into statement?
I did try 3 different methods to insert but still failed
insert into orders (6, 'microsoft surface pro', 'IDHGHRTUJ'''123456', 1, 8)
insert into orders (6, 'microsoft surface pro', 'IDHGHRTUJ'123456', 1, 8)
insert into orders (6, 'microsoft surface pro', "IDHGHRTUJ'123456", 1, 8)
I need output in this of the string with the apostrophe in iot
'IDHGHRTUJ''123456'insert into orders values (6,'microsoft surface pro','IDHGHRTUJ''123456' ,1,8)insert into orders (column1, column2, .....) values (6,'microsoft surface pro','IDHGHRTUJ''123456' ,1,8)