oracle生成时间列表

SELECT LEVEL + DATE '&starDate' - 1 dateFlag
  FROM dual
CONNECT BY LEVEL < DATE '&endDate' - DATE '&starDate' + 2;

  在oracle生成时间列表,从starDate'  到starDate'  时间列表。

猜你喜欢

转载自yongguang423.iteye.com/blog/1485590