Date value set
One way of creating a full date value is to create a view in the database, assign the view to a value set and assign the value set to the parameter of a concurrent program or to Descriptive Flexfield.
create or replace view date_time_v
AS
(SELECT (TO_DATE (SYSDATE - 1 + LEVEL, 'DD-MON-RRRR HH24:MI:SS')) cdate
, (TO_CHAR (SYSDATE - 1 + LEVEL, 'Month, DD RRRR HH24:MI:SS')) cdate_word
FROM DUAL x
CONNECT BY LEVEL <= 1000);
Selet * from
date_time_v;
the output would be
CDATE_ CDATE_WORD
10/17/2014 October , 17 2014 08:02:21
10/18/2014 October , 18 2014 08:02:21
10/19/2014 October , 19 2014 08:02:21
10/20/2014 October , 20 2014 08:02:21
10/21/2014 October , 21 2014 08:02:21
create or replace view date_time_v
AS
(SELECT (TO_DATE (SYSDATE - 1 + LEVEL, 'DD-MON-RRRR HH24:MI:SS')) cdate
, (TO_CHAR (SYSDATE - 1 + LEVEL, 'Month, DD RRRR HH24:MI:SS')) cdate_word
FROM DUAL x
CONNECT BY LEVEL <= 1000);
Selet * from
date_time_v;
the output would be
CDATE_ CDATE_WORD
10/17/2014 October , 17 2014 08:02:21
10/18/2014 October , 18 2014 08:02:21
10/19/2014 October , 19 2014 08:02:21
10/20/2014 October , 20 2014 08:02:21
10/21/2014 October , 21 2014 08:02:21
Comments
Post a Comment