在我的情况下,我正在传递一个SQL查询并在数据集中获取数据,但当我尝试获取ParentId列包含NULL的行时会出现问题。这是代码片段。
DataSet ds = GetDataSet("Select ProductId,ProductName,ParentId from ProductTable");
//ds is not blank and it has 2 rows in which ParentId is NULL
DataRow[] Rows = ds.Tables[0].Select("ParentId IS NULL");
但我仍然没有得到任何行。 需要帮助。谢谢。