Sandra Smith
asked on
Keep the apostrophe intact in an INSERTstatement SQL T-SQL
I am inserting data via script but how do I keep the apostrophe intact? The "\" escape does not work.
INSERT INTO Track (TrackID, AlbumID, Title, TrackNumber, Duration) VALUES (24,12,'You Won\'t See Me',3,202);
Sandra
INSERT INTO Track (TrackID, AlbumID, Title, TrackNumber, Duration) VALUES (24,12,'You Won\'t See Me',3,202);
Sandra
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Jim. Actually, this is a MySQL script that I am trying to convert to T-SQL so it has a few unfamiliar things in it. The backslash seems to be the escape character for MySQL. Let me try your suggestions and get back.
Sandra
Sandra
ASKER
This worked, thank you.
Thanks for the grade. Good luck with your code. -Jim
Open in new window