SQL语句 in 查询

for (int i = 0; i < dtUserAndAgentRelation.Rows.Count; i++ )
                {
                    strAgentID += string.Format("'{0}',", Convert.ToString(dtUserAndAgentRelation.Rows[i]["AgentID"]));
                    
                }

                strAgentID = strAgentID.Trim(',');
View Code
原文地址:https://www.cnblogs.com/show-lee/p/4578731.html