BigQuery - how to compare a “date” column (using legacy SQL)?

后端 未结 2 565
别跟我提以往
别跟我提以往 2021-02-05 12:14

I have a BigQuery table with a column Date which is a date type. I am trying to run this query:

SELECT * FROM dataset.table_name WHERE          


        
2条回答
  •  误落风尘
    2021-02-05 12:38

    This solution wasn't working for me:

    DATE(Date) = "2016-07-11"
    

    Instead, I had to use:

    Date = TIMESTAMP("2016-07-11")
    

提交回复
热议问题