> 其他 >
这几句程序拿错了
SqlConnection Conn = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["fxglConnectionString"].ConnectionString);
Conn.Open();
SqlCommand cmd = new SqlCommand("select PW,ROLE from USER where ID=" + userid,Conn);
SqlDataReader dr;
dr = cmd.ExecuteReader();这句通不过
人气:205 ℃ 时间:2020-10-01 07:17:33
解答
select里面把user改成[user]试试
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版