don't use = in the SQL statement. you should be able to do

INSERT INTO
        MyTABLE
        (Stuff)
        VALUES
        (''')

if that doesn't work, use the CF PreserveSingleQuotes() function.

-----Original Message-----
From: Phoeun Pha [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 22, 2001 8:59 AM
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to