Now()vs GetDate() [英] Now() vs GetDate()

查看:252
本文介绍了Now()vs GetDate()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将数据库从sqlserver迁移到mysql 当我来到sqlserver中的getDate()函数时,mysql中的替换为Now() 但是Now()没有返回getDate()返回的确切结果和格式.

I am migrating my database from sqlserver to mysql when i come to getDate() function in sqlserver the replacement in mysql is Now() but Now() not returned the exact result and format that getDate() returned.

有没有什么办法可以调整Now()结果以使其与getDate()

Is there any solution to tweak the Now() result to make as same as getDate()

getDate() result : 2014-01-07 00:28:46.017

Now() result     : 2014-01-07 10:28:03

推荐答案

我通过使用

    sysdate(3) returned '2014-01-07 10:52:07.252'

感谢每一个建议.

这篇关于Now()vs GetDate()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆