XPATH SQL标识符太长

时间:2015-07-21 15:00:01

标签: java sql xml xpath netbeans

我在Netbeans IDE中使用Java JDBC处理XPATH表达式。我遇到了这个错误java.sql.SQLSyntaxErrorException:ORA-00972:标识符太长了,带有以下查询:

result = stmt.executeQuery("SELECT a.book.extract('/book/author/text()').getStringVal() "
                + "FROM BOOK a "
                + "WHERE a.book.existsNode(\"/book/title[contains(text(), 'Potter')]\") = 1 ");
        System.out.println("\n------------Query 8 Results------------");
        System.out.println("Authors of Books whose title contains 'Potter': \n");
        while(result.next()){
            System.out.println(result.getString(1));
        }//end while

在没有改变表格等名称的情况下,有没有。谢谢!

0 个答案:

没有答案