简体   繁体   English

ORA-01858:找到非数字字符并期望输入数字

[英]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');

The first and third rows are being created but the second one fails saying, 正在创建第一行和第三行,但第二行失败,

ORA-01858: a non-numeric character found where a digit was expected ORA-01858:找到非数字字符并期望输入数字

You're missing a ' after 09:10:54 : 您在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.

相关问题 ORA-01858:在期望数字的地方找到了非数字字符? - ORA-01858: a non-numeric character was found where a numeric was expected? ORA-01858: 在需要数字的地方发现了一个非数字字符(时间戳、解码) - ORA-01858: a non-numeric character was found where a numeric was expected (timestamp, decode) 可能的日期分配错误ORA-01858:在期望数字的位置找到了非数字字符 - Possible Date assignment error ORA-01858: a non-numeric character was found where a numeric was expected ORA-01858: 在需要数字的地方发现了一个非数字字符 - ORA-01858: a non-numeric character was found where a numeric was expected ORA-01858:找到一个非数字字符,其中数字是预期的? 即使数值是数字? - ORA-01858: a non-numeric character was found where a numeric was expected? Even when the values are numbers? ORA-01858: 在一个简单的选择查询需要数字的地方发现了一个非数字字符 - ORA-01858: a non-numeric character was found where a numeric was expected for a simple select query ORA-01858:找到一个非数字字符,其中数字是预期的 - oracle 10g - ORA-01858: a non-numeric character was found where a numeric was expected - oracle 10g .NET ORA-01858:找到了一个非数字字符,其中包含数字 - .NET ORA-01858: a non-numeric character was found where a numeric was expected 错误 ORA-01858:在运行查询时应为数字的位置发现了非数字字符 - Error ORA-01858: a non-numeric character was found where a numeric was expected when running query 看到 ORA-01858:在需要数字的地方发现了一个非数字字符 - Seeing ORA-01858: a non-numeric character was found where a numeric was expected
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM