oracle建表时出现“标识符无效”错误

oracle用以下sql语句新建表时,出现“标识符无效”错误:

create table users(
       user_id integer not null,
       user_name varchar2(10),
       login_name varchar2(10) not null,
       password VARCHAR2(32) not null,
       USER_TYPE CHAR(1) default 'N'  not null constraint CKC_USER_TYPE_USERS check(USER_TYPE in ('N','A')),
       STS CHAR(1) default 'A'  not null constraint CKC_STS_USERS check(STS in ('A','D')),
       constraint PK_USER primary key(USER_ID),
)

发现把最后一个,去掉就可以了

猜你喜欢

转载自www.cnblogs.com/d-i-p/p/10939960.html