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.

Declare SQL variables

Featured Replies

Hello, It’s possible to run declare commands with SQL function, like this:

DECLARE @IncrementValue int

SET @IncrementValue = 1

UPDATE Table1 SET Column1 = Column1 + @IncrementValue

Thanks

Not with native Filemaker functions. The ExecuteSQL() function only allows you to read data, not change it (or modify table structure). There are SQL plugins that may do what you need though.

Ah, sorry, I didn't see this was under the ScriptMaster forums. I don't know enough about SM and SQL to give an answer, sorry.

The ScriptMaster module simply passes the statements to the FIleMaker engine using their SQL plugin API. I'm not aware of whether or not this is allowed through that interface but you could certainly try it and see.

  • Author

Thanks for your answers,

Didn't work with me, but i don't know ywhy, so please can you help me trying to eliminate some steps:

1. The functions is correct?

2. There is any SQL functions to increment value?

Thanks

According to SQL documentation

DECLARE works inside a BEGIN..END block - but it appears to not be supported

OR

you can just use the SET @var =1 notation - but this appears to not be supported either. At the moment at least.

It is not supported in some of the other SQL plugins either, so I would deduce it is not a legal function in FileMaker

So looks like you need some feature requests to FMI

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.