Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将数据插入数据库,但出现此异常:
java.sql.SqlException:[Oracle][ODBC]ORA-00928:缺少 SELECT 关键字
听起来您正试图将数据插入到 Oracle 表中。尝试编写如下语句:
INSERT INTO MyTable(Column1, Column2) VALUES (1, 'SomeString');
或者
INSERT INTO MyTable(Column1, Column2) SELECT Foo, Bar From MySecondTable;