34,593
社区成员
发帖
与我相关
我的任务
分享
select * from otim where sheetid in('A','B','C')
for (int i = 0; i < listBox2.Items.Count; i++)
{
string name0 = listBox2.Items[i].ToString();
// string sqlQuery = "";
}
string[] arrayC= new string[listBox2.Items.Count];
for (int i = 0; i < listBox2.Items.Count; i++)
{
arrayC[i] = listBox2.Items[i].ToString();
}
string instrin = string.Join("','", arrayC);
string sqlQuery = "select * from otim where sheetid in("+"'" + instrin + "'"+")";