dongmei1988 2018-08-29 08:40
浏览 760

Oracle ORA-00933:SQL命令未正确结束

I try to use golang and query data from Oracle. My SQL query is:

SELECT * FROM TABLE1 OFFSET 10 ROWS;

But it gives an error:

EXTRA *errors.withStack=dpiStmt_execute: ORA-00933: SQL command not properly ended

My SQL query works fine when I query in SQL*Plus, but errors when I use golang.

  • 写回答

3条回答 默认 最新

  • dongshuobei1037 2018-08-29 09:14
    关注

    If the offset is not specified, it is assumed that it is 0 (zero). So, remove that clause (as it does nothing in your case), i.e.

    select * from table1
    

    and use that query in golang.

    评论

报告相同问题?