Re: Inserting data that has apostrophes



noemail@xxxxxxxxx wrote on Tue, 21 Feb 2006 04:50:44 GMT:

Hello All!

How do I take a form on a web page where someone has entered information
in one of the fields with an apostrophe and make it so it doesn't delimit
my SQL statement and produce an error? Thanks in advance!

Double them up, eg:

UPDATE Table SET Col = 'O''Reilly'


Dan


.