Jump 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.

Where can I get information on ? "";""; etc

Featured Replies

Wim - I got this from something you wrote. 

Where can I get information (Reading 101 type info - it seems to me that the FM Site has little in the way of worked examples - or im missing something) on the structure of this code? 
I understand SELECT * FROM myTable WHERE myField = something but what is the ? and later what is the ;"";"";

ExecuteSQL(
"SELECT id FROM myTable WHERE myField = ? and id <> ?" ;
"" ;
"" ;
myTable::myField ;
myTable::ID
)

This would be a good place to start:

http://www.filemaker.com/help/14/fmp/en/html/func_ref1.32.185.html

and then:

http://filemakerhacks.com/2012/10/19/the-missing-fm-12-executesql-reference/

 

In a nutshell:

the empty quotes in the function's argument list is to signal that FM can use the default column and record delimiters.  You can specify your own delimiters instead of the default ones.

The "?" is a parameter placeholder.  If you use it, you have to tag the parameter itself to the end of the arguments list.

Using parameters solves two issues:

- it protects against SQL injection mis-use of your query

- FM will properly format and quote any data you pass as a parameter (single quotes for text, no quotes numbers, proper format for date, time and timestamps,...).  If you don't use parameters you have to make sure your values are properly quotes and formatted.

Create an account or sign in to comment

Important Information

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

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.