时间:2021-07-01 10:21:17 帮助过:12人阅读
insert into test values (1,‘2015-01-01‘);
直接设置成字符串,会报出“文字与格式字符串不匹配”的异常;
如果正确插入,则要将字符型数据转成日期型数据:
| 1 |
insert into test values (1,to_date(‘2015-01-01‘,‘yyyy-mm-dd‘));
|
Oracle插入语句日期格式设置
标签:container highlight to_date baidu nta oracle cin containe href