日期:2014-05-18 浏览次数:20575 次
DataSet ds; public DataTable gettable(int id) { //***** string str; SqlConnection cn = new SqlConnection(str); SqlCommand cmd = new SqlCommand("select * from ",cn ); SqlDataAdapter da = new SqlDataAdapter(cmd); DataTable dt = new DataTable(); da.Fill(dt); return dt; } //接收 DataTable dt = gettable(id );