楼主,你那个"uid"是啥值啊,好象被当成游标了或者别的系统保留字,换个名字就可以.

解决方案 »

  1.   

    恩,是系统保留字。uid返回唯一标识当前数据库用户的整数。
      

  2.   

    但是在建表时怎么把这个列名建上的呢?
    SQL> create table test5(uid number);
    create table test5(uid number)
                       *
    ERROR 位于第 1 行:
    ORA-00904: 无效列名
      

  3.   

    我在sql/plus中执行下面语句都报错?insert into testtable2(uid) values(1);
    insert into testtable2(uid) values('1'); 
    insert into testtable2(uid) values(to_number('1'));报的是什么错啊,能给copy出来吗?另外uid作为列名可以这样实现:create table test5("UID" number);