可以的
你把sql语句用数据库工具中试一下不就知道了吗

解决方案 »

  1.   

    int count = rst.getMetaData().getColumnCount();
    while(rst.next()){
    String[] recode = new String[count];
    int i = 0;

    while(i < recode.length){
    recode[i] = rst.getString(i++) + "";
    }
                                list.add(recode);行不?
    }
      

  2.   

    int count = rst.getMetaData().getColumnCount();
    for(i=1;i<=count;i++){
      list.add(rs.getString(i));
    }
      

  3.   

    insert into B (...) 
    values (
       select * 
       from A
    )
    我总是用这种 sql 语句。