开发者

Datetime string in HQL

I am using Castle ActiveRecord for my application. My 开发者_运维知识库problem is how to use a datetime string in HQL like this (without using parameters):

"from Contact c where c.DayOfBirth = '5/3/1988'"


Try using YYYY-MM-DD format:

from Contact c where c.DayOfBirth = '1988-05-03'
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜