SQL语句 in 查询
for (int i = 0; i < dtUserAndAgentRelation.Rows.Count; i++ ) { strAgentID += string.Format("'{0}',", Convert.ToString(dtUserAndAgentRelation.Rows[i]["AgentID"])); } strAgentID = strAgentID.Trim(',');
for (int i = 0; i < dtUserAndAgentRelation.Rows.Count; i++ ) { strAgentID += string.Format("'{0}',", Convert.ToString(dtUserAndAgentRelation.Rows[i]["AgentID"])); } strAgentID = strAgentID.Trim(',');