Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
If you can't
login and post questions or you are having trouble viewing forum posts:
Click Here
|
Callback
Support |
If you live in USA, UK, Canada, Australia or New
Zealand, you can leave us details on your question and request us to call you back and discuss
them with you personally (charges apply). |
Click Here
|
Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
|
Question on SYSTEM Date and SYSTEM Time |
Author |
Message |
sri |
|
Group | : Members |
Posts | : 19 |
Joined | : 2006-09-27 |
|
Profile |
|
Posted : 2007-02-17 09:08:18 |
Good Day,
Can we have a Statement like this using QODBC
In Oracle to find the Sysdate: "SELECT SYSDATE FROM DUAL".
Is their any available of getting the Date in this way.
|
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2007-02-17 10:54:41 |
QODBC and most ODBC drivers use the CURDATE function. This shows SYSTEM Date, SYSTEM Time and how to get to the start of a day and what Table Columns you would use the values with!
SELECT TxnDate, {fn CURDATE()} as "SYSDATE", CustomerRefFullName, TimeCreated, TimeModified, {fn NOW()} as "SYSTIME", {fn TIMESTAMPADD(SQL_TSI_YEAR, 0, {fn CURDATE()})} as STARTOFDAY from Invoice
|
|
|
|
|