D dreamblue Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-07 #1 比如我有个buy.db的表,表中有一个字段为购买日期 我想在一个form中用query找出超过购买日期30天的数据,在dbgirl中显示出来, 如何写aql语句。
L LeeChange Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-07 #2 select * from buy where date-getdate()>30 不同的库语法不一样
D dreamblue Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-07 #4 select * from buy where now-'购买日期'>30 这样好象不行。
Y yytxt Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-07 #5 楼上的想法没错. 就是看看时间格式方面有没有要统一的.
D delphihsc Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-07 #6 select * from buy where date-'购买日期'>30
Z zxyfd2000 Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-07 #7 select * from buy where DATEDIFF(day,现在的日期,购买的日期)>30 要给分哦hehe~~~