111,124
社区成员
发帖
与我相关
我的任务
分享 conn.Open();
SqlCommand sel = new SqlCommand("select * from [indent] where [id]='" + textBox3.Text + "'", conn);
if (Convert.ToInt32(sel.ExecuteScalar()) != 0)Console.WriteLine(int.MaxValue);Console.WriteLine(int.MaxValue);
if(Convert.ToInt32(sel.ExecuteScalar()) == 1)
{
//有
}
else
{
//无
}