sql - “ORA-00922: missing or invalid option” when trying to insert into table -


when run sql query in oracle sql developer work, in jdbc query doesn't work , catch java.sql.sqlsyntaxerrorexception: ora-00922: missing or invalid option. me ? there query below

create global temporary table my_table (     id varchar2(30 byte) primary key,      name varchar2(20 byte)); insert my_table (     id, name) values ('my_id' , 'my_name' ); 

it quick guess, because have no oracle available proof it, mybatis (which based on jdbc) had behavior last ;. please try remove in jdbc query.

please create temporary table in first statement, in second statement add data.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -