SELECT GETDATE() AS CurrentDateTime我调用getdate()这个函数时,为什么总是报错:#1305 - FUNCTION yyc.GETDATE does not exist数据库名叫yyc
2 回答
侃侃无极
TA贡献2051条经验 获得超10个赞
GETDATE () 是 SQL Server 的函数。
MySQL 里面,用 NOW () 函数
mysql> use test
Database changed
mysql> SELECT GETDATE() AS CurrentDateTime
-> ;
ERROR 1305 (42000): FUNCTION test.GETDATE does not exist
mysql> select now() as CurrentDateTime;
+---------------------+
| CurrentDateTime |
+---------------------+
| 2011-09-23 15:18:02 |
+---------------------+
1 row in set (0.00 sec)
- 2 回答
- 0 关注
- 776 浏览
添加回答
举报
0/150
提交
取消