The Postgres docs say a cast should look like...
expression::typename
typename(expression)
cast(expression as typename)
But this works:
select date '2015-06-20';
What is that syntax? Where is it documented?
The Postgres docs say a cast should look like...
expression::typename
typename(expression)
cast(expression as typename)
But this works:
select date '2015-06-20';
What is that syntax? Where is it documented?
Copyright © 2021 Jogjafile Inc.
It is typed constant - see http://www.postgresql.org/docs/9.4/static/sql-syntax-lexical.html section 4.1.2.7. Constants of Other Types.