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.

JDBC and SQL

Featured Replies

  • Newbies

I have a database called: "test.fm"

I have two text fields: "name1" and "city"

I made one record:

name1 = rich

city = winnipeg

The following queries give me the following results (just prints the data):

select * from "test.fm" where name1 = 'rich'

select * from "test.fm" where name1 = 'rich' or name1 = 'blank'

select * from "test.fm" where name1 = 'rich' and city = 'winnipeg'

RESULTS:

name1: rich

city: winnipeg

Here are the queries that don't work. They return no results at all.

select * from "test.fm" where name1 = 'rich' or name1 = 'blank' and

city = 'winnipeg'

select * from "test.fm" where (name1 = 'rich' or name1 = 'blank') and

city = 'winnipeg'

This should definitely work. Any ideas, I really need help on this one.

Blank is a string value like 'camel' or 'shoes' and it doesn't mean a blank record

select * from "test.fm" where name1 = 'rich' or name1 = 'blank'

Work because name1 = 'rich' work

You should try to use null or is null

  • Author
  • Newbies

Sorry, I really shouldn't have used that value for name1.

This query example won't work:

select * from "test.fm" where (name1 = 'rich' or name1 = 'bob') and

city = 'winnipeg'

Filemaker JDBC implementation is based on web companion. That mean that jdbc got the limitation as cdml

And in cdml you can not mixte logical operator and/or in a querry

  • 2 weeks later...

so sad...why didn't they engineer a good sql engine?

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.