SQL插入字段

//SQL插入字段

String dropTable=”drop table if exists test;”; 
String columnGid =”alter table test add gid serial;”; 
String columnA1=” alter table test add a1 character varying ;”; 
jdbcUtil.alterColumns(columnGid+columnA1); 
String columnAi=null; 
int columns= excelReader.getColNum(); 
for (int i = 2; i <= columns; i++) { 
columnAi=”alter table test add a”+i+” double precision ;”; 
System.out.println(columnAi); 
jdbcUtil.alterColumns(columnAi); 
System.out.println(“完成”+columnAi); 
}
posted @ 2016-12-08 13:50  TTonlyV5  阅读(865)  评论(0)    收藏  举报