VB.netのDataTable Selectメソッドでこれを記述する関数はありますか?私は、クエリを作成するには、このコードを持っているが、私は句VB.NETのDataTable SelectメソッドのSQL IN演算子
For Each typeitem In shapecb.Items
If Stntypeitem.Selected = True Then
If o = True Then
sqlfil += " AND Shape = '" + typeitem.Value + "'"
Else
sqlfil += "Shape = '" + typeitem.Value + "'"
o = True
End If
End If
Next
Dim bindtable As DataTable = dt.Clone
Dim rows As DataRow() = dt.[Select](sqlfil)
For Each row As DataRow In rows
bindtable.ImportRow(row)
Next
はあなたの助け
いただきありがとうございますで使用できる場合、それはいいだろう使用SELECT id from mytable where id in ('a','b','c')
を希望することを
SQLクエリ
素晴らしい!出来た! – shinya