ASP.Net DataView 过滤器说明

发布于 2024-09-10 05:49:07 字数 231 浏览 0 评论 0原文

当我过滤 DataView 时,

someView.RowFilter = "ID<>'A22' and isnull(IsVerified,0)=0"

isnull(IsVerified,0)=0 背后的逻辑是什么?

这是否意味着列 IsVerified 为 null 还是检查列 IsVerified 不为 null ?

When i Filter a DataView

someView.RowFilter = "ID<>'A22' and isnull(IsVerified,0)=0"

What is the logic behind isnull(IsVerified,0)=0?

Does it mean the column IsVerified is null or does it check the column IsVerified not null ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

墨小墨 2024-09-17 05:49:07

IsNull(IsVerified,0) 调用检查 IsVerified 值是否为 Null,如果为 null,则返回 0,否则返回 IsVerified 的值。因此,由于随后将其与 0 进行比较,因此如果 IsVerified 的值为 0 或 null,则将选择您的行。

有关 IsNull 函数的更多信息请参见此处

The IsNull(IsVerified,0) call checks the IsVerified value for Null, and if it is null, returns 0, otherwise it returns the value of IsVerified. So since it is then comparing that with 0, your row will be selected if IsVerified has the value of 0 or null.

More about IsNull function here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文