Date Bus value
2014-02-05 1 10
2014-02-06 1 15
2014-02-07 1 16
2014-02-08 2 20
2014-02-09 2 17
2014-02-10 2 19
昨天我已经在数据库的表格中输入了上述记录。我想根据sysdate
显示记录。例如如果今天是2014-02-05秀:
Date Bus value
2014-02-05 1 10
然后,明天秀:
2014-02-06 1 15
答案 0 :(得分:3)
试试这个:
SELECT "DATE", BUS, VALUE
FROM {your_table}
WHERE "DATE" >= trunc(sysdate) and "DATE" < trunc(sysdate+1)