Rob*_*b N 4 postgresql casting postgresql-9.4
在Postgres的文档说投应该像...
expression::typename
typename(expression)
cast(expression as typename)
Run Code Online (Sandbox Code Playgroud)
但这有效:
select date '2015-06-20';
Run Code Online (Sandbox Code Playgroud)
那是什么语法?它在哪里记录?
它是类型常量 - 请参阅http://www.postgresql.org/docs/9.4/static/sql-syntax-lexical.html第4.1.2.7节.其他类型的常量.
可以使用以下任何一种符号输入任意类型的常量:
type 'string' 'string'::type CAST ( 'string' AS type )
归档时间: |
|
查看次数: |
429 次 |
最近记录: |