動(dòng)態(tài)創(chuàng)建表:
public static void createTable(){
Configuration conf = new Configuration().add(
).configure();
SchemaExport dbExport = new SchemaExport(conf);
dbExport.setOutputFile("xxx.log"); //生成的腳本輸出到哪里
dbExport.create(true, true);
}
Configuration conf = new Configuration().add(

SchemaExport dbExport = new SchemaExport(conf);
dbExport.setOutputFile("xxx.log"); //生成的腳本輸出到哪里
dbExport.create(true, true);
}