ORA-01858:找到一个数字的非数字字符

时间:2015-02-01 04:48:50

标签: sql oracle ora-01858

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:找到预期数字的非数字字符

1 个答案:

答案 0 :(得分:2)

您在'之后错过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');