select * from table where StartDay <= '''+SysUtils.FormatDateTime('yyyy-mm-dd', nowTime)+''' and EndDay >= '''+SysUtils.FormatDateTime('yyyy-mm-dd', nowTime)+'''
这样写也不行啊!!!!'select * from T_SHORTOUTSELLTIMESET where StartDay <= '''+FormatDateTime('yyyy-mm-dd',nowTime)+''' and EndDay >= '''+FormatDateTime('yyyy-mm-dd',nowTime)+'''';
摆脱你们给一个正确一点的答案好不好啊!好几个人在等着那……
'select * from table where StartDay <= to_date('''+sysutils.DateTimeToStr(nowTime)+''',''yyyy-mm-dd'') and EndDay >= to_date('''+sysutils.DateTimeToStr(nowTime)+''',''yyyy-mm-dd'') '