Oracle10g ORA-00913:值太多错误(即使我已检查了表和条目)
这是表格:Oracle10g ORA-00913:值太多错误(即使我已检查了表和条目),oracle10g,ora-00913,Oracle10g,Ora 00913,这是表格: create table Student( student_id char(6) primary key, name varchar(10) not null, department char(20), grade char(6), percentage smallint, contact_no char(12), address varchar(50) ); 这就是我要插入的内容: insert into Student
create table Student(
student_id char(6) primary key,
name varchar(10) not null,
department char(20),
grade char(6),
percentage smallint,
contact_no char(12),
address varchar(50)
);
这就是我要插入的内容:
insert into Student
values ('ST-01','Zain','coe','A+',74,'9999777865','New Delhi');
为什么ORA-00913:当我没有插入额外值时,值太多错误?。能否在SQL*Plus中重新创建表并显示输出。。。这似乎是正确的(尽管您对smallint、char和varchar的使用有点奇怪,并且您正在向smallint列中插入一个字符)。。。我正在插入74,这是一个整数……在insert语句中明确列出列是一种很好的编码方式:
insert-into-student(student\u-id,…)
。如果您这样做,您可能会立即看到问题。您没有插入到您认为要插入的表中。