This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dev:sql:functions:current_time [2009/12/05 00:14] tdo created |
dev:sql:functions:current_time [2016/06/28 22:38] (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> | ||
- | ====== Omnidex SQL Function: DATE_TIME ====== | ||
{{page>:sql_bar&nofooter&noeditbtn}} | {{page>:sql_bar&nofooter&noeditbtn}} | ||
+ | |||
+ | ====== Omnidex SQL Function: CURRENT_TIME ====== | ||
===== Description ===== | ===== Description ===== | ||
- | The CURRENT_TIME function returns the current date from the system's time-of-day clock. | + | The CURRENT_TIME function returns the current time 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. In a client-server or Omnidex Grid application, the time returned is from the individual server processing the query. |
- | 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. | + | This function returns an ANSI TIME datatype. |
===== Syntax ===== | ===== Syntax ===== | ||
CURRENT_TIME | CURRENT_TIME | ||
+ | |||
===== Examples ===== | ===== Examples ===== | ||
- | ==== Example 1 ==== | + | ==== Example 1: Column ==== |
- | <code SQL> | + | <code> |
- | select company, | + | > select current_time from $omnidex; |
- | current_time | + | |
- | from customers | + | CURRENT_TIME |
- | where company='dynamic' | + | ------------ |
+ | 16:15:08.00 | ||
- | ... | ||
- | Dynamic Information Systems Corporation, 14:44:56.00 | ||
</code> | </code> | ||
+ | |||
+ | ====== Additional Resources ====== | ||
+ | |||
+ | See also: | ||
+ | {{page>dev:sql:functions:see_also_variables&nofooter&noeditbtn&noheader}} | ||
{{page>:bottom_add&nofooter&noeditbtn}} | {{page>:bottom_add&nofooter&noeditbtn}} |