帶一個(gè)參數(shù),則該函數(shù)返回的日期或日期時(shí)間表達(dá)式expr作為日期時(shí)間值。有兩個(gè)參數(shù)的,它增加時(shí)間表達(dá)式expr2到日期或日期時(shí)間表達(dá)式expr1并返回結(jié)果為datetime值。
mysql> SELECT TIMESTAMP('2003-12-31'); +---------------------------------------------------------+ | TIMESTAMP('2003-12-31') | +---------------------------------------------------------+ | 2003-12-31 00:00:00 | +---------------------------------------------------------+ 1 row in set (0.00 sec)