0
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: 在需要数字的地方发现了一个非数字字符

4

1 回答 1

2

你错过了一个'after 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');
于 2015-02-01T04:53:13.813 回答