首页 > TAG信息列表 > dateCol
SQL 报表 生成月份临时表
1 if OBJECT_ID('tempdb..#temptblAllYearMonth') is not null 2 drop table #temptblAllYearMonth 3 4 declare @StartDate DATE = '20210101' 5 declare @EndDate DATE = '20211201'; 6 7 WITH cte as ( 8 select @StartDate dOracle date类型的相关处理函数
oracle中如何插入date类型的数据方法如下: insert into tabname(datecol) value(sysdate) ; – 用date值 insert into tabname(datecol) value(sysdate+1) ; – 用date值 insert into tabname(datecol) value(to_date(‘2014-02-14’,‘yyyy-mm-dd’)) ; – 用to_date insOracle to_date函数
insert into tabname(datecol) value(sysdate) ; -- 用date值insert into tabname(datecol) value(sysdate+1) ; -- 用date值insert into tabname(datecol) value(to_date('2014-02-14','yyyy-mm-dd')) ; -- 用to_dateinsert into tabname(datecol) value(to