This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
dev:sql:functions:current_date [2009/12/05 00:01] tdo created |
dev:sql:functions:current_date [2012/10/26 14:28] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| {{page>:top_add&nofooter&noeditbtn}} | {{page>:top_add&nofooter&noeditbtn}} | ||
| <html><div align="center"><span style="color:red">DRAFT</span></div></html> | <html><div align="center"><span style="color:red">DRAFT</span></div></html> | ||
| - | ====== Omnidex SQL Function: CASE ====== | + | ====== Omnidex SQL Function: CURRENT_DATE ====== |
| {{page>:sql_bar&nofooter&noeditbtn}} | {{page>:sql_bar&nofooter&noeditbtn}} | ||
| ===== Description ===== | ===== Description ===== | ||
| - | The CURRENT_TIME function returns the current date from the system's time-of-day clock. | + | The CURRENT_DATE function returns the current date from the system's time-of-day clock. |
| The function is processed once at the beginning of execution of the SQL statement. A new value is not obtained with each reference or with each fetched row. | The function is processed once at the beginning of execution of the SQL statement. A new value is not obtained with each reference or with each fetched row. | ||
| ===== Syntax ===== | ===== Syntax ===== | ||
| - | CURRENT_TIME | + | CURRENT_DATE |
| - | ===== Example ===== | + | ===== Examples ===== |
| ==== Example 1 ==== | ==== Example 1 ==== | ||
| + | |||
| <code SQL> | <code SQL> | ||
| select company, | select company, | ||
| - | current_time | + | current_date |
| from customers | from customers | ||
| where company='dynamic' | where company='dynamic' | ||
| ... | ... | ||
| - | Dynamic Information Systems Corporation, 14:44:56.00 | + | Dynamic Information Systems Corporation, 2004-03-15 |
| - | <code> | + | </code> |
| {{page>:bottom_add&nofooter&noeditbtn}} | {{page>:bottom_add&nofooter&noeditbtn}} | ||