SELECT GETDATE() AS CurrentDateTime 我调用getdate()这个函数时,为什么总是报错: #1305 - FUNCTION yyc.GETDATE does not exist 数据库名叫yyc
临摹微笑
浏览 786回答 2
2回答
侃侃无极
GETDATE () 是 SQL Server 的函数。MySQL 里面,用 NOW () 函数mysql> use testDatabase changedmysql> SELECT GETDATE() AS CurrentDateTime-> ;ERROR 1305 (42000): FUNCTION test.GETDATE does not existmysql> select now() as CurrentDateTime;+---------------------+| CurrentDateTime |+---------------------+| 2011-09-23 15:18:02 |+---------------------+1 row in set (0.00 sec)