我想可以吧,用jdbc-odbc bridge

解决方案 »

  1.   

    http://jakarta.apache.org/poi/hssf/index.html使用他们的开发包,很easy的可以读写excel
      

  2.   

    http://www.andykhan.com/jexcelapi/index.html
      

  3.   

    贴个例子,我已经试过了,还行,要用odbc的import java.sql.*;public class TestServer 
    {
     static 
     {
         try  { 
             Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         } 
         catch (Exception e) {
             System.err.println(e);
         }
     } public static void main(String args[]) {
         Connection conn=null;
         Statement stmt=null;
         String sql="";
         try {
             conn=DriverManager.getConnection("jdbc:odbc:excelTest","","");
             stmt=conn.createStatement();
             sql="INSERT INTO [Sheet1$] (FIELD_NAME1 FIELD_NAME2 FIELD_NAME3) VALUES (100,'String Value',200)";
             stmt.executeUpdate(sql);     } 
         catch (Exception e){
             System.err.println(e);
         } 
         finally {
             try{
                 stmt.close();
                 conn.close();
                 stmt=null;
                 conn=null; 
             }
             catch(Exception e){}
         }
     }