Skip to main content
Inspiring
May 2, 2007
Question

Handling apostrophes

  • May 2, 2007
  • 1 reply
  • 312 views
I have an excel spreadsheet that I have to upload into our database. Some of the fields have apostrophes in them such as the last name O'Brien.
When I try to store that into the database, I get an error since I have to use '#last_name#' in my query.
Is there a way to handle this?
This topic has been closed for replies.

1 reply

Inspiring
May 2, 2007
use either <cfqueryparam> tag or PreserveSingleQuotes() function in your
query sql.

--

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com