ResultSet excutePreparedStatement(string strSQL,Vector vArray)]
throws SQLException 
{
           PreparedStatement pstmt = conn.prepareStatement(strSQL);
           for(int i=0;j=vArray.size();i<j;i++)
             setObject(1,vArray[i]);
           ResultSet ret=pstmt.executeQuery() ;
           return ret;
}

解决方案 »

  1.   

    ResultSet excutePreparedStatement(string strSQL,Vector vArray)]
    throws SQLException 
    {
               PreparedStatement pstmt = conn.prepareStatement(strSQL);
               for(int i=0;j=vArray.size();i<j;i++)
                 pstmt.setObject(1,vArray[i]);
               ResultSet ret=pstmt.executeQuery() ;
               return ret;
    }
      

  2.   

    呵呵,老兄,我想要知道的就是strSQL和vArray的产生过程呀,你直接就到了最后一步。