How to extract a subset of a database into a dbunit file using a sql query?
问题 Why ? I have got a big Oracle table. I would like to test some DAO methods. To do so, I use dbunit. Problem I would like to extract a subset of an existing database as a dbunit flat xml file using a sql query. Example of query : Select t1.field1 as field1, t1.field2 as field2, t2.field3 as field3 From table1 t1 Join table2 t2 on t1.fieldX=t2.fieldX Where t1.field6='value' and t2.field8='value2' in this case it will extract all records of table1 and table2 which are results of the query and