3
我有一个事件表。 我试图显示未来所有事件的列表。 我使用的是orm,但我无法弄清楚我的生活如何在将来选择日期。 过滤器只接受“=”而不接受“>”。 我现在有这个,但它显然是行不通的:EntityLoad日期在未来
var events = entityLoad("tbl_events",{"eventActive" = 1, "eventDate" > NOW()},"EventDate Asc",{maxResults = count});
问题解决了感谢。 orgExecuteQuery(“from tbl_events where eventActive = 1 AND eventDate>?ORDER BY eventDate ASC”,[lsDateFormat(now(),'yyyy-mm-dd')]); – 2011-01-25 11:04:58