开发者

FileMaker 11 JDBC - How to SELECT the current system date?

In Oracle, I can SELEC开发者_开发问答T 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.


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


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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜