hql如何获得当前时间

[复制链接]
查看11 | 回复1 | 2013-1-22 20:40:34 | 显示全部楼层 |阅读模式
current_date():获取当前日期(年月日)current_time():获取当前时间(时分秒)current_timestamp():获取当前时间戳例如:select current_date(), current_time(), current_timestamp() from Topic t
回复

使用道具 举报

千问 | 2013-1-22 20:40:34 | 显示全部楼层
你问的是SQL吧,getdate()可以获得当前时间,这个函数返回的就是当前时间
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行