以下方法經測試
背景
步驟
附錄
* 創建導出腳本
* @param conn
* @param creator 表創建者
* @param filePath
*/
public void createExportFile(Connection conn
DBBase dbBase = new DBBase(conn);
String selectTableSql =
try {
dbBase
} catch (Exception ex) {
throw ex;
} finally {
dbBase
}
DBResult result = dbBase
List list = new ArrayList();
while (result
String table = result
list
}
StringBuffer sb = new StringBuffer();
String enterFlag =
for (int i =
String tableName = (String)list
sb
[
From:http://tw.wingwit.com/Article/program/DB2/201311/21944.html