Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dev:sql:functions:current_time [2010/07/28 22:38]
els
dev:sql:functions:current_time [2016/06/28 22:38] (current)
Line 2: Line 2:
 {{page>:​sql_bar&​nofooter&​noeditbtn}} {{page>:​sql_bar&​nofooter&​noeditbtn}}
  
-====== Omnidex SQL Function: ​CURRENT_USER ​======+====== Omnidex SQL Function: ​CURRENT_TIME ​======
 ===== Description ===== ===== Description =====
-The USER, CURRENT_USER and SESSION_USER functions return ​the current ​user of Omnidex.  ​Omnidex does not provide a user security layer, and so these functions always return a value of "​DEFAULT"​.  ​ +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 client-server or Omnidex Grid application,​ the time returned is from the individual server processing the query.
- +
-This function returns ​C STRING datatype.+
  
 +This function returns an ANSI TIME datatype.
 ===== Syntax ===== ===== Syntax =====
-CURRENT_USER+CURRENT_TIME
  
 ===== Examples ===== ===== Examples =====
 ==== Example 1: Column ==== ==== Example 1: Column ====
 <​code>​ <​code>​
-> select ​current_user ​from $omnidex;+> select ​current_time ​from $omnidex;
  
-CURRENT +CURRENT_TIME 
-------- +------------ 
-DEFAULT+ 16:15:08.00
  
 </​code>​ </​code>​
Line 28: Line 27:
  
 {{page>:​bottom_add&​nofooter&​noeditbtn}} {{page>:​bottom_add&​nofooter&​noeditbtn}}
- 
 
Back to top
dev/sql/functions/current_time.1280356724.txt.gz · Last modified: 2016/06/28 22:38 (external edit)