![](/img/trans.png)
[英]ORA-01858: a non-numeric character was found where a numeric was expected?
[英]ORA-01858: a non-numeric character found where a digit was expected
create table fb_post (
post_id int primary key,
post_author varchar(5),
post_wall_id varchar(5),
post_date date,
post_location varchar(50),
foreign key (post_author) references fb_user(fb_id),
foreign key (post_wall_id) references fb_wall(wall_id));
insert into fb_post
values(1201,'F2','W6',to_date('Oct-02-07 09:11:17','mon-dd-yy hh24:mi:ss'),'Gonzales, LA, United States');
insert into fb_post
values(1202,'F3','W8' ,to_date('Oct-02-07 01:31:39','mon-dd-yy hh24:mi:ss'),'Gonzales, LA, United States');
insert into fb_post
values(1203,'F12','W14',to_date(' Oct-02-07 09:10:54, 'mon-dd-yy hh24:mi:ss'),'Pasadena,LA,United States');
正在創建第一行和第三行,但第二行失敗,
ORA-01858:找到非數字字符並期望輸入數字
您在09:10:54
之后缺少'
insert into fb_post
values(1203,'F12','W14',to_date(' Oct-02-07 09:10:54', 'mon-dd-yy hh24:mi:ss'),'Pasadena,LA,United States');
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.