【问题标题】:How the where clause will work for the date field in the teradatawhere 子句如何用于 teradata 中的日期字段
【发布时间】:2019-09-26 03:58:40
【问题描述】:

我想在 teredata 中的日期字段上应用 where 子句,但它显示空记录。下面是用于获取数据的查询。

select * from table name where date = '2019-05-01'  

请建议正确的格式。

【问题讨论】:

    标签: teradata teradata-sql-assistant


    【解决方案1】:

    试试下面的格式:

    select * from table x where date = DATE '2019-05-01'
    

    查看site

    【讨论】:

      猜你喜欢
      • 2022-12-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-02
      相关资源
      最近更新 更多