ORA-00907:missing right parenthesis

1、错误描述



2、错误原因

create table t_stu_info(
    id int(10) primary key,
    name varchar2(20) not null
 );

     由错误提示,缺失右括号,提示的位置是int(10)处


3、解决办法

create table t_stu_info(
    id int primary key,
    name varchar2(20) not null
 );
    将id后的数据类型的长度去掉后,不报错;之前id数据类型长度也有括号,不缺少右括号,但是Oracle客户端还是提示报错

原文地址:https://www.cnblogs.com/hzcya1995/p/13314304.html