hello,
I have two schemas S1 and S2 with identical table structure. I`ll start with example:
on S1.table1 I have:
ID DATA1 DATA2
01 data1 test1
02 data1 test1
on S2.table1 I have:
ID DATA1 DATA2
01 data2 test2
02 data2 test2
Is it possible to select one row (from S1.table1) update it (change value of ID column) and insert it into S2.table1? I want to write single SQL query which will be used as prepared statement (Java).
Final result on S2 should be:
ID DATA1 DATA2
01 data2 test2
02 data2 test2
03 data1 test1
so i inserted first row from S1.table1, and changed only ID.
Thanks, Jonas