开发者

Datetime string in HQL

开发者 https://www.devze.com 2023-01-13 15:40 出处:网络
I am using Castle ActiveRecord for my application. My 开发者_运维知识库problem is how to use a datetime string in HQL like this (without using parameters):

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

精彩评论

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

关注公众号