怎样按时间读取解决办法
怎样按时间读取
sqlstr= "select * from [news] where xxtype= 'A ' and author= '一部 ' "
在上面代码中我要实现:从2007-1-1 06:00:00起到现在、类型为A、作者是一部的数据。
这个时间怎样加进去?
------解决方案--------------------
[time]> #2007-1-1 06:00:00#
sqlstr= "select * from [news] where xxtype= 'A ' and author= '一部 ' "
在上面代码中我要实现:从2007-1-1 06:00:00起到现在、类型为A、作者是一部的数据。
这个时间怎样加进去?
------解决方案--------------------
[time]> #2007-1-1 06:00:00#