.net中的SqlCommand 的方法ExecuteNonQuery() 在执行查询的Sql语句时为什么总是返回-1,应该是有记录的啊。。
SqlConnection con = new SqlConnection(connstring);
con.Open();
SqlCommand com = new SqlCommand(sql,con);
int a = com.ExecuteNonQuery();
con.Close();
MessageBox.Show(Convert .ToString(a));