create table student(
id int not null IDENTITY,
name varchar2(32) not null,
password varchar2(32) not null,
primary key(id)
);错误信息是:
create table student(
                    *
ERROR 位于第 1 行:
ORA-00922: 缺少或无效选项

解决方案 »

  1.   

    create table "student"(
    "id" int not null IDENTITY,
    "name" varchar2(32) not null,
    "password" varchar2(32) not null,
    primary key(id)
    );
      

  2.   

    oracle 没有自增字段,没有identity关键字,如果需要使用自增字段的话,可以使用序列+触发器来实现,具体使用可以上网搜一搜