时间:2021-07-01 10:21:17 帮助过:55人阅读
SQL中取得传入月份值的所有天数 使用Oracle PL/SQL 无 select lpad(rownum, 2, 0) ymd from dualconnect by rownum = (SELECT add_months(trunc(to_date('201002', 'yyyymm'), 'mm'), 1) - trunc(to_date('201002', 'yyyymm'), 'mm') FROM DUAL)
SQL中取得传入月份值的所有天数select lpad(rownum, 2, 0) ymd from dual connect by rownum <= (SELECT add_months(trunc(to_date('201002', 'yyyymm'), 'mm'), 1) - trunc(to_date('201002', 'yyyymm'), 'mm') FROM DUAL)