我编写了这个 c# 代码来从学生信息中选择 card_id,除了一个 card_id,但我从网上读到 except 子句在访问中不起作用……我该怎么做,请帮帮我?
ol_com.CommandText = "select [card_id] from student_info except select [card_id] from student_info where [card_id] = '"+update_st_card.Text+"'";
reader = ol_com.ExecuteReader();
if (reader.HasRows)
{
up_st_lbl2.Text = "message";
}