我必须将字符串数组中的值与数据库中特定列的值进行比较。我该怎么做呢 ?
public void setvisibility(string user_ID)
{
SqlDataReader reader = null;
SqlConnection connection = new SqlConnection(WebConfigurationManager.ConnectionStrings["ctd_prrity_dbConnectionSting"].ConnectionString);
connection.Open();\
SqlCommand cmd = new SqlCommand("Select * from Admins );
我需要将 user_ID 的值与 Admins 表中的唯一列进行比较!