string sql=string.Format("select count(*)from student_form where stu_id={0}",txtBox1.text)
SqlCommand com = new SqlCommand(sql1, con);
int count = Convert.ToInt32(com.ExecuteScalar());
if (count>=1)
{
。。。。、、存在
}
else
{
.....//不存在
}
string sql=string.Format("select count(*)from student_form where stu_id={0}",txtBox1.text)
SqlCommand com = new SqlCommand(sql1, con);
int count = Convert.ToInt32(com.ExecuteScalar());
if (count>=1)
{
。。。。、、存在
}
else
{
.....//不存在
}