有什么闯关游戏:asp.net 如何得到记录的个数?
来源:百度文库 编辑:查人人中国名人网 时间:2024/05/15 06:36:57
.....
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