0

In Oracle's SQL developer, I have created a table named BBS_COUNT_BASES with the following definition:

CREATE TABLE BBS_COUNT_BASES
   (    BASE_COUNT NUMBER NOT NULL, 
    BASE_EDN CLOB NOT NULL
   )

I have also inserted a record into the table using the statement:

INSERT INTO BBS_COUNT_BASES (base_count, base_edn ) VALUES (100, '{}')

Now, using SQL Developer, I can use the statement

UPDATE BBS_COUNT_BASES SET base_edn = '{}' WHERE base_count = 100

to update the base_edn value to (in this test case) the same value.

However, when I attempt to pass this statement to clojure.java.jdbc/query, the JDBC driver errors out with the error shown in the title. Does anyone have any clue why this statement is being seen as invalid by the JDBC driver?

4

1 に答える 1

0

UPDATEを使用してステートメントを発行することはできませんquery。JDBC は、そのインターフェースでクエリと更新を分離します。これが、取得している例外の意味です。使用するclojure.java.jdbc/update!

于 2016-07-28T20:32:33.170 に答える