0
我有table1和table2。我想将table1中的列a和列b插入到table2中以及我自己的值(value1和value2)中。列a和b非常大,这就是为什么我不想将它们导入到我的Java应用程序中。另外我需要a和b选择的条件。我的preparedStatement应该如何?我觉得像如下:从另一个表和自己的值插入到db2Table中
insert into table2 (columnvalue1, columnvalue2, a, b) as
(select a, b from table1 where value3 = ? and value4 = ?)
不要叫列值3和值4等,这只是太混乱。 – jarlh