请教数据库中得到的值在这里进行比较
DataTable dctl = dl( "select popedom from userinformation where userid= ' " + a + " ' and pwd= ' " + b + " ' ");
//获取数据库中popedom中列的值
string popedom_s = dctl.Columns[ "popedom "].ToString();
//变量获取该数据库popedom列中值进行比较
if (popedom_s == "1 ")
{
Form1 form1 = new Form1();
form1.Show();
}
else if (popedom_s == "2 ")
{
Form2 form2 = new Form2();
form2.Show();
}
else if (popedom_s == "3 ")
{
Delete delt = new Delete();
delt.Show();
}
else {
MessageBox.Show( "错误的用户 "+MessageB