你把stu_basic_infor_seq.nextval去掉,在表后面加上字段名,你这样试试看。
MSSQL中这样可以的。"insert into eduinfo.stu_basic_infor() values (stu_basic_infor_seq.nextval,2,2,2,'fdsa','asdf','m','fsa','fsda','fdsa','dfsaf','fdsaf')");

解决方案 »

  1.   

    oracle resolve such a syntax.
    A another method,you can get the "stu_basic_infor_seq.nextval" first,and then you insert the oracle.
    "select stu_basic_infor_seq.nextval from dual"
      

  2.   

    oracle cann't resolve such a syntax.
      

  3.   

    我在程序里面执行select stu_basic_infor_seq.nextval from mytable,但是还是不成功,返回同样的错误:出错原因:Caused by: java.sql.SQLException: ORA-02289: 序列(号)不存在
    真的搞不懂了!为什么在pl/sql里面就可以,在java里面用PreparedStatement 和 ResultSet 就得不到我想要的东西呢?
      

  4.   

    select stu_basic_infor_seq.nextval from mytable
    not "mytable"
    It's must be "dual"
      

  5.   

    多谢了,兄弟们,我搞定了,哈哈:)
    是seq的用户没有建立的问题!
      

  6.   

    另外我想问一下,我用mytable就可以的啊!
    为什么非要选择from dual呢?dual到底是什么东西,我初学,还弄不明白。