I have a query that works like a charm in Oracles's sql developer.. However, when I run it in visual studio, it does not throw an error, it just doesn't do the insert.
insert into table_a_audit (fielda, fieldb, fieldc, dateField) select fielda, fieldb, fieldc, sysdate as datefield from table_a where fielda = xxxx;
If I modify the code, removing the select and instead use:
insert into table_a_audit (fielda, fieldb, fieldc, dateField) values (123, 123, 123, sysdate);
It works great. However, since I NEED to copy the data from another table, using the select with the insert is really how I want to code. Any ideas why it won't work in visual studio?
Thank you