小编Col*_*lin的帖子

c#如何在select语句中指定not?

我在数据集上使用select方法来检索符合我条件的结果:

foreach (DataRow dr in dsPone2.Tables["tt-pone"].Select(strWhereCondition))
{
    dsPone.Tables["tt-pone"].ImportRow(dr);
}
Run Code Online (Sandbox Code Playgroud)

如何更改strWhereCondition

strWhereCondition += " AND poneid = 0 and aoneid = 0 and tranid = 0";
Run Code Online (Sandbox Code Playgroud)

到tranid不是0的地方?

我使用<>!=

c# datatable

-1
推荐指数
1
解决办法
2万
查看次数

标签 统计

c# ×1

datatable ×1