【问题标题】:Complex condition复杂的条件
【发布时间】:2013-01-31 02:04:19
【问题描述】:

我有一个关于从 VB.NET 中的 DataTable 对象中选择函数数据的问题。 示例:

在 PL/SQL 中:Select * from Table where A not in (Select B from Table)

那么,我如何在DataTale Object 中实现这一点?

【问题讨论】:

    标签: vb.net datatable


    【解决方案1】:

    我关注该查询中的 where 条件。

    现在我通过使用解决了我的问题

    Dim selectChil = From p In _ps.AsEnumerable()
                     Select p.Field(Of String)(_childKey)
    Dim selectParent = (From p In _ps.AsEnumerable()
                       Where selectChil.Contains(p.Field(Of String)(_parentKey)) = False
                       Select p.Field(Of String)(_parentKey))
    

    谢谢你,

    【讨论】:

      猜你喜欢
      • 2011-02-15
      • 1970-01-01
      • 2018-07-28
      • 1970-01-01
      • 1970-01-01
      • 2019-03-09
      • 1970-01-01
      • 2014-06-22
      • 2017-07-27
      相关资源
      最近更新 更多