µ±È»²»ÄÜд¾ßÌåʱ¼ä£¬ÒòΪÿ´ÎÎÒ¶¼²éÕâÖÖÊý¾Ýselect * from tablename where create_time>= trunc(SYSDATE-1) and create_time <trunc(SYSDATE ) select * from tablename where create_time> trunc(SYSDATE-1)+ 8/24 and create_time < trunc(SYSDATE) + 8/24 select * from tablename where create_time>to_date('20090103 00:00:00','yyyymmdd hh24:mi:ss') and create_time <to_date(20090104 00:00:00','yyyymmdd hh24:mi:ss')
ÏÖÓÐÒÔÏÂÊý¾Ý£º ID Name 1 Jack,Tom,Ben 2 Mary,Simth,Tony,Jay ת»»Îª£º ID Name 1 Jack 1 Tom 1 Ben 2 Mary 2 Simth 2 Tony 2 Jay ÒªÇóʹÓÃSQL²éѯÍê³É£¬ÓÉÓÚÌõ¼þÏÞÖÆ£¬²»ÄÜʹÓà ......