SqlDataReader reader = sqlCommand.ExecuteReader(CommandBehavior.CloseConnection)
= "select users.uNO,upwd from users where uNO.='" + this.textBox1.Text.Trim() + "'and upwd='" + this.textBox2.Text.Trim() + "'";SqlDataReader reader = sqlCommand.ExecuteReader(CommandBehavior.CloseConnection);
if (reader.Read())
{
this.Hide();
users user = new users ();
user.Show();
}
运行是不会报错,输入用户名和密码后就会出现
“'=' 附近有语法错误。”
各位大神。帮帮忙啊。