我想从数据集中过滤值。它包含以零和非零值开头的电话号码。如何从数据集中过滤电话号码(以非零开头)。下面是 vb.net 代码和产生的错误。
cmd = New OracleCommand("select PHONE from reports.renewal_contact_t where run_date=to_date('" + TextBox1.Text + "','mm/dd/yyyy') and EXP_DATE =to_date('" + TextBox2.Text + "','mm/dd/yyyy') and region not in('TNP')", cn)
ada = New OracleDataAdapter(cmd)
ada.Fill(ds, "reports.renewal_contact_t ")
Dim ds1 As New DataSet
ds1.Tables("reports.renewal_contact_t").DefaultView.RowFilter = "PHONE NOT like'0'"
错误:对象引用未设置为对象的实例。行过滤器行中的错误