gpt4 book ai didi

postgresql 以下语法的含义 current_database()::information_schema.sql_identifier

转载 作者:行者123 更新时间:2023-11-29 12:20:05 26 4
gpt4 key购买 nike

一个简单的问题

在 postgresql 中有时我会看到类似这样的语法:

current_database()::information_schema.sql_identifier

:: 是什么意思?

最佳答案

:: 用于将一种数据类型转换为另一种数据类型。有两种转换方式(运行时类型转换)

CAST ( expression AS type )
expression::type

您可以使用其中任何一个。可以引用http://www.postgresql.org/docs/current/static/sql-expressions.html了解更多详情。

关于postgresql 以下语法的含义 current_database()::information_schema.sql_identifier,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30885814/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com