我使用了代码update football_team set DOB='1991-06-07' where id=1;,但是它出现了错误。
ORA-01861:文字不匹配格式字符串
发布于 2014-08-07 06:28:48
试着这样做:
update football_team
set DOB=TO_DATE('1991-06-07', 'yyyy-mm-dd')
where id=1;发布于 2014-08-07 06:31:23
这是因为日期FormatString不正确
试着跟随
update football_team set DOB=TO_DATE('1991/06/07','yyyy/mm/dd') where id=1;或者您的自定义格式
https://stackoverflow.com/questions/25175550
复制相似问题