If it's in a var CF will auto escape it, if not manually escape it. '' is an
escaped single quote for SQL.
INSERT INTO MyTABLE(Stuff)
VALUES ('''')
Would insert a single quote into the db. Same idea as using ## to get CF to
display a # inside a <CFOUTPUT>.
-----Original Message-----
From: Phoeun Pha [mailto:[EMAIL PROTECTED]]
Sent: January 22, 2001 11:59
To: CF-Talk
Subject: Single Quotes in SQL HELP PLEASE!
ok, I want to enter this character into a SQL table. '
but i get an error. how do I make it enter ' into the database?
INSERT INTO MyTABLE(Stuff)
VALUES = '''
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists