How can I fix this error : non supported SQL92?

后端 未结 5 2094
盖世英雄少女心
盖世英雄少女心 2020-12-19 03:32

I wirte code in java and database connection with oracle. I run some script and get this error.My script work in toad but not work in my project

url include .

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-19 03:46

    You may be able to get around this by following the answer of another StackOverflow post: Create Java on Oracle database with JDBC

    A summary is:

    CallableStatement stat = conn.prepareCall(sql);
    stat.setEscapeProcessing(false);
    stat.execute();
    

    The middle line is what you seem to be missing. I couldn't figure it out until I found that post.

提交回复
热议问题