Encountering SQL Error: ORA-01843: not a valid month

前端 未结 5 984
心在旅途
心在旅途 2021-01-21 21:33

I created a table using this query
CREATE TABLE Store (id number(11) primary key not null, opening_time timestamp CHECK (EXTRACT(HOUR FROM opening_time) > 8 || NUL

5条回答
  •  清酒与你
    2021-01-21 22:17

    You dont have to insert the primary key value in table. It is auto generated. And try to provide the format of your date using the TO_DATE function like:

    insert into Store values(to_date('04/04/2012 13:35 PM','DD/MM/YYYY HH:MI AM'));
    

提交回复
热议问题