我在oracle数据库中用如下语句进行建表操作,然后弹出如题目的错误框信息“ORA-00955: 名称已由现有对象使用”,该怎么解决?
create table students (student_id number constraint pk_student primary key, student_name varchar2(10) not null,
subject varchar2(20), score number constraint chk_score check (score between 0 and 100) not null)我上网搜了下好像是说我有重名的列,但我用如下语句搜过后表students都是没有的
select table_name from user_tables where table_name = 'STUDENTS';
create table students (student_id number constraint pk_student primary key, student_name varchar2(10) not null,
subject varchar2(20), score number constraint chk_score check (score between 0 and 100) not null)我上网搜了下好像是说我有重名的列,但我用如下语句搜过后表students都是没有的
select table_name from user_tables where table_name = 'STUDENTS';
select OBJECT_NAME from user_objects where OBJECT_NAME = 'STUDENTS';