110,537
社区成员
发帖
与我相关
我的任务
分享
String sql="";
for(int i = 0;i<ListBox1.Items.Count;i++)
{
if(ListBox1.Items[i].Selected) sql = " guid='"+ ListBox1.Items[i].Value +"' Or";
}
if(sql!="") sql=" Where " + sql.Substring(0,sql.Length-2);
sql = "select * from table" + sql;