猕猴桃在室温能放多久:asp.net 如何得到记录的个数?
来源:百度文库 编辑:神马品牌网 时间:2024/04/29 01:49:34
.....
string strSql = "select count(*) from [user] where status=1";
SqlCommand cmd = new SqlCommand(strSql, conn);
conn.Open();
int count = (int)cmd.ExecuteScalar();
conn.Close();
.....
ExecuteNonQuery