【问题标题】:How to show only values in a column and ignore the blank cells in Access query?如何仅显示列中的值并忽略 Access 查询中的空白单元格?
【发布时间】:2020-07-30 18:39:26
【问题描述】:

我有一个具有主键的列,然后是一个在其中一些具有值的列。如何让查询仅显示这些列中的值?

我尝试了以下方法并不断收到错误:

SELECT [Case Level Report].[Charge Level] WHERE not [Case Level Report].[Charge Level] 为空 FROM [案例级别报告];

我也试过: SELECT [Case Level Report].[Charge Level] WHERE is not null '' FROM [案例级别报告];

和

SELECT [Case Level Report].[Charge Level] WHERE 不为空 FROM [案例级别报告];

我迷路了,现在想不通。

【问题讨论】:

    标签: sql ms-access where-clause sql-null


    【解决方案1】:

    看起来您希望在 WHERE 子句中使用 IS NOT NULL 条件。语法是:

    SELECT [Charge Level]
    FROM [Case Level Report]
    WHERE [Charge Level] IS NOT NULL
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-20
      • 1970-01-01
      • 1970-01-01
      • 2020-02-05
      • 2014-06-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多