请教在ASP.NET怎么输出SQL查询语句的值

日期:2017-07-21 21:49:49 人气:1

请教在ASP.NET怎么输出SQL查询语句的值

SqlConnection conn=.... SqlCommand com=new SqlCommand( "select sum(空位数量) as total from House1 ",conn); Lable1.Text=com.ExecuteScalar().ToString();
    A+
热门评论