ExecuteNonQuery()方法:用于执行SQL语句,并返回受影响的记录的行数。 ExecuteScalar()方法 :SqlCommand对象ExecuteScalar()方法用于执行查询,并返回查询所返回的结果集中第1行第1列的信息!