windows下怎么连,linux下就怎么连

解决方案 »

  1.   

    Class.forName("com.sybase.jdbc.SybDriver").newInstance();  
    String url =" jdbc:sybase:Tds:localhost:5007/tsdata";  
    //tsdata为你的数据库名  
    Properties sysProps = System.getProperties();  
    SysProps.put("user","userid");  
    SysProps.put("password","user_password");  
    Connection conn= DriverManager.getConnection(url, SysProps);  
    Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);  
      

  2.   

    http://wenxue.lycos.com.cn/books/17739/1/4.html