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

 

posted @ 2015-06-15 17:21  约翰·李富贵  阅读(406)  评论(0编辑  收藏  举报