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.

Sequelink: multiple fields value in a query

Featured Replies

Hello all,

I'm using SQLserver 2008 with Visual studio and SSID.

I'm trying to retreive data from a Filemaker table via ODBC (sequelink) and put them into a MySQL table.

In mysql (and in all standard SQL compliant RDBMS) multiple fields doesn't exists, so I have 20 fileds which should receive 20 values from a multiple field with 20 repetitions.

I don't know (and I can't figure) how to select every single repetition from filemaker and update MySQL. I'm afraid that this is not possible.

Do you know which syntax to use to query Filemaker properly (if any)?

  • 6 months later...

There is a hack for getting multiple fields out of Filemaker via sql. This consists in creating a calculated field which makes a comma-separated String from all the values in the multiple field. Then you get the new comma-separated field in sql.

This is how I created a comma-separated field of the 'ValutePerSitoAgenzie' multiple field for example (you might not need the isempty check):(

GetRepetition ( ValutePerSitoAgenzie ; 1 ) & If ( not IsEmpty ( GetRepetition ( ValutePerSitoAgenzie ; 2 ) ) ; "," ; "" ) & GetRepetition ( ValutePerSitoAgenzie ; 2 )& If ( not IsEmpty ( GetRepetition ( ValutePerSitoAgenzie ; 3 ) ) ; "," ; "" ) & GetRepetition ( ValutePerSitoAgenzie ; 3 )& If ( not IsEmpty ( GetRepetition ( ValutePerSitoAgenzie ; 4 ) ) ; "," ; "" ) & GetRepetition ( ValutePerSitoAgenzie ; 4 )

Yowsie... I wouldn't like burdening my schema with a calc like that.

How about reversing the whole thing: make a new file that has a TO to the main FM file and a TO to the mySQL data table (using the FMS ESS feature). Now you can write your own parsing logic in a script and push data into mySQL without importing.

(will be slower than importing but you'll have more control). You can schedule this as an FMS server-side script schedule

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.