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

前端 未结 5 988
心在旅途
心在旅途 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:08

    Good practice is using to_date function with your data format. In you case it will:

    insert into Store 
    values(1, to_date('04/04/2012 13:35', 'DD/MM/YYYY HH24:mi'));
    

    More details about this function you can found here in official documentation.

提交回复
热议问题