I have to use the native SQL to fetch data from table, retrieving the table data is not a problem, the problem is when I want to add new record or update existing record.
I understand that I have to put the INSERT command or UPDATE SQL command, but I confuse what parameter should I use as the parameter in the values part.
Here what I mean:
Code: Select all
INSERT INTO <myTable> (field1, field2, field3) VALUES ( --- this part confused me --);
....Missing IN or OUT parameter at index:: 1
and when I change the : to && it gave the error:
ORA-00933: SQL command not properly ended
(I have no problem when inserting new record using sqlplus or SQL developer using the same syntax).