1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| CREATE TABLE PLAN( ID NUMBER PRIMARY KEY NOT NULL , START_DATE DATE, END_DATE DATE );
INSERT INTO PLAN(ID, START_DATE, END_DATE)VALUES (1,TO_DATE('2020-05-15', 'yyyy-MM-dd'),TO_DATE('2020-05-15', 'yyyy-MM-dd')); INSERT INTO PLAN(ID, START_DATE, END_DATE)VALUES (2,TO_DATE('2020-05-15', 'yyyy-MM-dd'),TO_DATE('2020-06-15', 'yyyy-MM-dd')); INSERT INTO PLAN(ID, START_DATE, END_DATE)VALUES (3,TO_DATE('2020-05-15', 'yyyy-MM-dd'),TO_DATE('2020-07-15', 'yyyy-MM-dd')); INSERT INTO PLAN(ID, START_DATE, END_DATE)VALUES (4,TO_DATE('2020-05-15', 'yyyy-MM-dd'),NULL);
INSERT INTO PLAN(ID, START_DATE, END_DATE)VALUES (5,TO_DATE('2020-06-15', 'yyyy-MM-dd'),TO_DATE('2020-06-15', 'yyyy-MM-dd')); INSERT INTO PLAN(ID, START_DATE, END_DATE)VALUES (6,TO_DATE('2020-06-15', 'yyyy-MM-dd'),TO_DATE('2020-07-15', 'yyyy-MM-dd')); INSERT INTO PLAN(ID, START_DATE, END_DATE)VALUES (7,TO_DATE('2020-06-15', 'yyyy-MM-dd'),NULL);
INSERT INTO PLAN(ID, START_DATE, END_DATE)VALUES (8,TO_DATE('2020-07-15', 'yyyy-MM-dd'),TO_DATE('2020-07-15', 'yyyy-MM-dd')); INSERT INTO PLAN(ID, START_DATE, END_DATE)VALUES (9,TO_DATE('2020-07-15', 'yyyy-MM-dd'),NULL);
SELECT * FROM PLAN;
|