Hi Guys,
I have a table where I where I can enter date in HH:MM format.
I have already created the table as:
How can I format the TIMESTAMP datatype so I can enter values like 23:45 or 11:55 etc?
Currently if I try to do so I get the error:
Row 1: ORA-01847: day of month must be between 1 and last day of month
ORA-06512: at line 1
I have tried declaring them as:
with no luck. Any help will be appreciated.
Thanks.
I have a table where I where I can enter date in HH:MM format.
I have already created the table as:
Code:
CREATE TABLE "test"."SLA"
(
"SLAID" NUMBER(10,0) NOT NULL ENABLE,
"SLALEVEL" VARCHAR2(200 BYTE) NOT NULL ENABLE,
"WEEKDAY_START_TIME" TIMESTAMP (6),
"WEEKDAY_END_TIME" TIMESTAMP (6),
"WEEKEND_START_TIME" TIMESTAMP (6),
"WEEKEND_END_TIME" TIMESTAMP (6),
)
How can I format the TIMESTAMP datatype so I can enter values like 23:45 or 11:55 etc?
Currently if I try to do so I get the error:
Row 1: ORA-01847: day of month must be between 1 and last day of month
ORA-06512: at line 1
I have tried declaring them as:
Code:
"WEEKDAY_START_TIME" TIMESTAMP 'HH24:MM'
Thanks.
Comment