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://blog.csdn.net/jiangjunshow

猜你喜欢

转载自www.cnblogs.com/odejsjhshw/p/10366911.html