摘要:
1、退出for循环:exit for 例: for i=1 to 10 if rs.eof or rs.bof then exit for end if next 2、退出do while循环: exit do 例: do while not rs.eof or rs.bof if i=20 the 阅读全文
摘要:
Sql 查询当天、本周、本月记录 --查询当天: select * from info where DateDiff(dd,datetime,getdate())=0 --查询24小时内的: select * from info where DateDiff(hh,datetime,getDate( 阅读全文