取當前日期各种數据庫的寫法
发表于:2007-07-02来源:作者:点击数:
标签:
取當前日期各种數据庫的寫法
作者﹕
CCBZZP
1. ORACLE
SELECT SYSDATE FROM DUAL
2. DB2
SELECT CURRENT TIMESTAMP FROM SYSIBM.SYSDUMMY1
3. INFOR
MIX
SELECT TODAY FROM TABLE
4. SQLSERVER
SELECT GE
TDATE() FROM TABLE
5. SQLSERVER
SELECT GETDATE() FROM TABLE
6. MYSQL
mysql> select now();
mysql> select sysdate();
mysql> select curdate();
mysql> select current_date;
mysql> select curtime();
mysql> select current_time;
7. FO
XPRO
select DATE() from TABLE
原文转自:http://www.ltesting.net