|
最佳回答 |
4
|
sp2015Lv4见习互助发布于2019-2-15 08:17
|
SELECT TRUNC(SYSDATE, 'MM') + ROWNUM - 1 FROM DUAL CONNECT BY ROWNUM <= TO_NUMBER(TO_CHAR(LAST_DAY(SYSDATE), 'dd'))
|
|
|
|
最佳回答 |
0
|
刘牛牛Lv3见习互助发布于2019-2-14 17:45
|
RANGE (DATEINMONTH("2018-10-12", 1), DATEINMONTH("2018-10-12", (DAYSOFMONTH("2018-10-12"))))
|
|
|
|
最佳回答 |
0
|
wangnaiwenLv6见习互助发布于2019-2-15 08:28
|
SELECT CONVERT(varchar(10),DATEADD(dd,a.number,'2019-01-01'),120) date1 FROM master..spt_values a WHERE a.type = 'P' AND number BETWEEN 0 AND (select DATEDIFF(dd,'2019-01-01','2019-01-31'))
|
|
|
|
最佳回答 |
0
|
黄源Lv6中级互助发布于2019-2-15 10:53(编辑于 2019-2-15 10:54)
|
select convert(varchar(10),dateadd(dd,number,'2018-12-01'),120) as dt from master..spt_values where type='P' and dateadd(dd,number,'2018-12-01')<=dateadd(dd,-1,'2019-01-01') 要哪个月自己改标红日期
|
|
|
|
最佳回答 |
0
|
flyingsnakeLv6资深互助发布于2019-2-15 11:09
|
SELECT
convert(char(10), DATEADD(dd,number,'2017-06-13'),120) AS yyyymmdd
FROM
master..spt_values
WHERE
type = 'p'
AND DATEDIFF(MI,DATEADD(dd,number,'2017-06-13'),'2017-06-17') > 0
---------------------
作者:Torch_Life
来源:CSDN
原文:https://blog.csdn.net/qq_36350477/article/details/82223986
版权声明:本文为博主原创文章,转载请附上博文链接!
|
|
|