Oracle date format picture ends before converting entire input string

前端 未结 4 1263
南方客
南方客 2021-01-11 09:55

My table has two DATE format attributes, however, when i try to insert value it throws an error: date format picture ends before converting entire input string.

4条回答
  •  不要未来只要你来
    2021-01-11 10:25

    What you're trying to insert is not a date, I think, but a string. You need to use to_date() function, like this:

    insert into table t1 (id, date_field) values (1, to_date('20.06.2013', 'dd.mm.yyyy'));
    

提交回复
热议问题