Difference between revisions of "CURRENT TIMESTAMP"
From SQLZOO
| (3 intermediate revisions by 2 users not shown) | |||
| Line 9: | Line 9: | ||
<tr><td align='left'>sqlserver</td><td>Yes</td><td></td></tr> | <tr><td align='left'>sqlserver</td><td>Yes</td><td></td></tr> | ||
</table> | </table> | ||
| + | |||
<h1>CURRENT_TIMESTAMP</h1> | <h1>CURRENT_TIMESTAMP</h1> | ||
<p>CURRENT_TIMESTAMP returns the current date and time. </p> | <p>CURRENT_TIMESTAMP returns the current date and time. </p> | ||
| Line 16: | Line 17: | ||
</pre> | </pre> | ||
| − | <div class=' | + | <div class='ht'> |
| − | + | <div class=params>schema:gisq</div> | |
| − | + | <source lang='sql' class='def e-oracle'> | |
| + | SELECT CURRENT_TIMESTAMP, whn | ||
| + | FROM gisq.eclipse | ||
| + | </source> | ||
<source lang='sql' class='def'> | <source lang='sql' class='def'> | ||
SELECT CURRENT_TIMESTAMP, whn | SELECT CURRENT_TIMESTAMP, whn | ||
| Line 29: | Line 33: | ||
<li>[[%2B(dates) |+(dates) function]]</li> | <li>[[%2B(dates) |+(dates) function]]</li> | ||
</ul> | </ul> | ||
| + | |||
| + | {{Languages}} | ||
Latest revision as of 18:50, 21 October 2012
| CURRENT_TIMESTAMP | ||
|---|---|---|
| Engine | OK | Alternative |
| ingres | Yes | |
| mysql | Yes | |
| oracle | Yes | |
| postgres | Yes | |
| sqlserver | Yes | |
CURRENT_TIMESTAMP
CURRENT_TIMESTAMP returns the current date and time.
CURRENT_TIMESTAMP -> '2006-12-31 18:03:44'
schema:gisq
SELECT CURRENT_TIMESTAMP, whn FROM gisq.eclipse
SELECT CURRENT_TIMESTAMP, whn FROM eclipse
See also
| Language: | English • Deutsch |
|---|