Quantcast
Channel: Oracle, MySQL, Sybase, Informix and other databases
Viewing all articles
Browse latest Browse all 1350

sql works in sql developer but not in visual studio

$
0
0

 

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


Viewing all articles
Browse latest Browse all 1350

Latest Images

Trending Articles



Latest Images