Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Single quotes in the values of an update statement

Featured Replies

  • Newbies

Hi all,

i'm using the JDBC driver from FileMaker together with Apache's Cocoon to build a web application. On updating my data i create a SQL statement containing a single quote in the new value, like the following:

update "Produkt.fp5" set name='Thank's'

It don't work, i receive a error message from FilemMaker. I tried to escape the single quote with '', ', %27, and some other, but i don't get it to work.

I've found a similar thread in this forum, but without solution. Is there really no solution to this problem ?

Many thanks in advance

Kai

What is the error message you get ?

update "Produkt.fp5" set name='Thank's' is your all statement ?

  • Author
  • Newbies

I don't have currently the exact error text at hand, but the error message was something about an incorrect SQL statement.

The statement:

update "Produkt.fp5" set name='Thank's'

is only an simplified example, the real statements updates several additional fields.

Well, first off, I realize that was an example by Thanks is not possessive. There is no need for a single quote in it.

Another option is to use the back-tick ` instead of the apostrophe.

  • Author
  • Newbies

The values to be set in the database originated from a wen form and thus i can't prevent the user to type in an apostrophe. I've already implemented the exchange of the apostrophe with an backquote, but this is still incorrect. It#s not the data the user wants to write in the database

  • 4 weeks later...

I could be wrong, but I believe SQL-92 uses two single quotes together to put a literal quote in a string:

(with two single quotes, not a double-quote )

Try:

update "Produkt.fp5" set name='Thank''s'

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.