Jump to content
Salesforce and other SMB Solutions are coming soon. ×

JDBC Sql Tip: Create Table DUAL to get DATE()


Recommended Posts

- Problem: using FMPro, JDBC Sql Date() function, against any table will return the date for as many rows as there are data rows in the table.

Select Date() from Employees; -- for example, will return as many rows as there are employees in your table.

- Solution: Like Oracle, there's a need for a DUAL table. Dual is a Table Guaranteed to return only 1 row.


Select Date() from Dual;

returns: 2005-12-10


Dual is created using:


Create Table DUAL ( "DUMMY" varchar(1) NOT NULL );


Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

Terms of Use