gpt4 book ai didi

sql - PostgreSQL 中 Informix GLOBAL 修饰符的等价物

转载 作者:行者123 更新时间:2023-11-29 13:39:31 25 4
gpt4 key购买 nike

我需要在 Postgresql 中找到 Informix GLOBAL 修饰符的等价物。来自 Informix 指南:GLOBAL 关键字表示后面的变量具有引用范围,包括在给定 DB-Access 或 SQL 管理 API session 中运行的所有 SPL 例程。

最佳答案

Postgres set session "configuration parameters"有 session 范围:

SET only affects the value used by the current session.

示例用法:

set session "myvars.var1" = '3.1415';
...
select current_setting('myvars.var1');

关于sql - PostgreSQL 中 Informix GLOBAL 修饰符的等价物,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57408230/

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