62,074
社区成员
发帖
与我相关
我的任务
分享
string sql="select distinct typename from XC_WJMasterDevType where typename in('"+this.ListBox1.SelectedItem.Text.Trim()+"')"
string str = "";
for (int i = 0; i < ListBox1.Items.Count; i++)//可以多选
{
if (ListBox1.Items[i].Selected)
{
str+=ListBox1.Items[i].Text+",";
}
}
str = str.Substring(0,str.Length-1);
string sql="select distinct typename from XC_WJMasterDevType where typename in('"+str+"')"