Question

In Oracle, I can SELECT sysdate FROM dual to get the current system date/time.

How can I do the same accessing a FileMaker database via the JDBC driver?

Note: "Don't use FileMaker" is unfortunately not an option.

Was it helpful?

Solution

Create an unstored calc field that calls Get ( CurrentHostTimeStamp ) and then include that field as one of your selected fields.

(Make sure you configure the field's options so that FileMaker does not store the calculation results - unless you want the date/time of when the field was added...)

OTHER TIPS

I don't know FileMaker, but maybe the standard (ANSI SQL) expressions CURRENT_DATE or CURRENT_TIMESTAMP work?

So something like

SELECT CURRENT_TIMESTAMP
FROM whatever

Edit: Another thing to try could be the standard JDBC escape function:

SELECT {fn CURTIME()}
FROM whatever
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top