create-in-v0.27.0-time-literals.td 643 B

1234567891011121314
  1. # Copyright Materialize, Inc. and contributors. All rights reserved.
  2. #
  3. # Use of this software is governed by the Business Source License
  4. # included in the LICENSE file at the root of this repository.
  5. #
  6. # As of the Change Date specified in that file, in accordance with
  7. # the Business Source License, use of this software will be governed
  8. # by the Apache License, Version 2.0.
  9. #
  10. # CREATE a view containing various time literals
  11. #
  12. > CREATE MATERIALIZED VIEW time_literals AS SELECT DATE '2007-02-01' c1, INTERVAL '1-2 3 4:5:6.7' c2, TIME '01:23:45'c3, TIMESTAMP '2007-02-01 15:04:05.123456' c4, TIMESTAMPTZ '2007-02-01 15:04:05.123456+06' c5;