我需要使用DataTable.Select方法对一列上的多个值进行筛选。
Dim totalFatal As Integer = _
m_DataSet.Tables("tblAccidentNonMotorist").Select(String.Format( _
"[AccidentNumber] = '{0}' AND _
CONTAINS([InjuryClass], '"01" OR "02" OR "03"'", accidentNumber)).Length我可以使用CONTAINS来过滤吗?
发布于 2010-12-29 04:49:34
我觉得你想要"[AccidentNumber] = '{0}' AND [InjuryClass] in( '01' , '02' , '03')"
https://stackoverflow.com/questions/4549367
复制相似问题