問題タブ [ora-00900]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
sql - ORA-00900 on delete statement
I'm trying to use DELETE FROM
with an IN
clause and a subquery to delete rows given by a query on another table that is 1-to-1 with the table I am deleting from, but Oracle 11g2 barfs an utterly unhelpful ORA-00900 error at me, as in the following SQL fiddle:
http://sqlfiddle.com/#!4/93171/1
For those who can't get at SQLfiddle, the schema/initial load I'm using is (I'm using varchar
instead of varchar2
for test portability, the "wild" data uses varchar2
instead):
and the statements I'm trying to run are:
#xA;(The select ... full outer join
runs by itself, and the error still happens if I still comment it out, so it's not the source of the ORA-00900.)
P.S. this statement is valid SQL, too -- neither SQL Server 2014 nor PostgreSQL 9.3 have an issue with the fiddle, and it works in a local copy of SQLite 3.8.8.3 as well once the full outer join
is switched for an inner join
.
oracle - Clojure JDBC error with Oracle... java.sql.SQLSyntaxErrorException: ORA-00900: invalid SQL statement
In Oracle's SQL developer, I have created a table named BBS_COUNT_BASES with the following definition:
I have also inserted a record into the table using the statement:
Now, using SQL Developer, I can use the statement
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?