8 messages in com.mysql.lists.javaClever data dump
FromSent OnAttachments
Konrad Billewicz16 Aug 2005 07:19 
Jim Cant16 Aug 2005 18:38 
Konrad Billewicz17 Aug 2005 02:57 
Jim Cant17 Aug 2005 06:26 
Konrad Billewicz18 Aug 2005 06:36 
Ronald Klop23 Aug 2005 07:24 
A.J. Blanchard (ajblanch)28 Aug 2005 20:18 
tom-...@supanet.com29 Aug 2005 10:41 
Subject:Clever data dump
From:Konrad Billewicz (konr@akonet.pl)
Date:08/16/2005 07:19:24 AM
List:com.mysql.lists.java

Hello,

I would like to export a part of my MySQL database as a SQL script. I thought about mysqldump.exe but it's too simple. I need to export rows from one table which matchs simple criteria and all rows from other tables which are in relation with them.

The ideal solution would be to make a SELECT query and pass it to *something*. This *something* would execute the query, analyze found rows and return SQL script creating these rows.

In current project I'm using Hibernate but this part can be done using any tool or pure JDBC.

How would you handle such a task?

Akonet Sp. z o.o. ul. Rozbrat 32/37 00-429 Warszawa