添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

*author blovedr

* 功能: 1305-FUNCTION liangshanhero2.getdate does not exit 问题解决

*日期: 2018年8月16日   10:35

*注释:  学习数据库MySQL的点点记录, 谢谢网上各位大神分享经验与资料, 欢迎大神批评与交流。

1305-FUNCTION liangshanhero2.getdate does not exit

2018 8 15 15:44

1305-FUNCTION liangshanhero2.getdate does not exit

1305-FUNCTION liangshanhero2.getdate不退出(不存在)

datetime 示例

datetime_SQLServer 中示例 2018.8.15   16:02

drop table spname

create table spname( bir datetime )

--SQLServer 为我们提供了一个专门的时间函数

--getdate()

insert into spname values( getdate() )

自注: SQLServer 中以上 sql 语句可以运行出正确当前系统时间,格式如: 2009-12-15  10:24:26. 140 MySQL 这个语句是会 报错 2018.8.15   16:18

1305 问题解决

-- MySQL

--now()

insert into spname values( now() )

自注: OK MySQL 中得到系统当前时间的函数, 格式如: 2018-08-15 16:19:55 , 此时可以在 MySQL 中运行得到正确的系统当前时间。 2018.8.15   16:21

select * from spname