VB.net에서 DataTable Select 메서드로이 함수를 작성하는 함수가 있습니까? 내가 사용VB.NET에서 DataTable Select 메서드의 SQL IN 연산자
SELECT id from mytable where id in ('a','b','c')
싶습니다
SQL 쿼리 나는 쿼리를 만들려면이 코드를하지만 난
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
당신의 도움이
주셔서 감사합니다 절을에서 사용할 수 있다면 좋을 것입니다
좋아요! 그것은 일했다! – shinya