This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
dev:sql:functions:current_date [2010/07/28 22:09] els |
dev:sql:functions:current_date [2010/07/28 22:19] els |
||
---|---|---|---|
Line 1: | Line 1: | ||
{{page>:top_add&nofooter&noeditbtn}} | {{page>:top_add&nofooter&noeditbtn}} | ||
{{page>:sql_bar&nofooter&noeditbtn}} | {{page>:sql_bar&nofooter&noeditbtn}} | ||
- | |||
====== Omnidex SQL Function: CURRENT_DATE ====== | ====== Omnidex SQL Function: CURRENT_DATE ====== | ||
Line 9: | Line 8: | ||
This function returns an ANSI DATE datatype. | This function returns an ANSI DATE datatype. | ||
===== Syntax ===== | ===== Syntax ===== | ||
- | $DATA_LENGTH ( column ) | + | CURRENT_DATE |
- | + | ||
- | == column == | + | |
- | + | ||
- | Required. The name of a column, qualified by the table and database as needed. | + | |
===== Examples ===== | ===== Examples ===== | ||
Line 48: | Line 43: | ||
{{page>:bottom_add&nofooter&noeditbtn}} | {{page>:bottom_add&nofooter&noeditbtn}} | ||
- | ===== | ||
- | |||
- | {{page>:top_add&nofooter&noeditbtn}} | ||
- | <html><div align="center"><span style="color:red">DRAFT</span></div></html> | ||
- | ====== Omnidex SQL Function: CURRENT_DATE ====== | ||
- | {{page>:sql_bar&nofooter&noeditbtn}} | ||
- | ===== Description ===== | ||
- | The CURRENT_DATE function returns the current date from the server's time-of-day clock. | ||
- | |||
- | The function is processed once at the beginning of the execution of the SQL statement. A new value is not obtained with each reference or with each fetched row. | ||
- | |||
- | If the function is called within an application in a networked environment, the time returned is from the server with the Omnidex Environment. | ||
- | |||
- | This function returns an ANSI DATE datatype. | ||
- | |||
- | ===== Syntax ===== | ||
- | CURRENT_DATE | ||
- | ===== Examples ===== | ||
- | ==== Example 1 ==== | ||
- | |||
- | <code> | ||
- | select company, | ||
- | current_date | ||
- | from customers | ||
- | where company='dynamic' | ||
- | |||
- | ... | ||
- | Dynamic Information Systems Corporation, 2004-03-15 | ||
- | </code> | ||
- | {{page>:bottom_add&nofooter&noeditbtn}} |