您好,欢迎来到微智科技网。
搜索
您的当前位置:首页Read Env Variables from an SQR

Read Env Variables from an SQR

来源:微智科技网
Get the O/S environment variables from within SQR programs
There is a function called GetEnv().

 

This gets the TEMP environment variable on the machine where SQR is run.

Returns the value of the specified environment variable. If the environment variable does not exist, an empty string is returned.

Syntax: dst_var = getenv(env_value)
env_value = text literal, column, variable, or expression.
dst_var = text variable.

Example: let $UserTempDirectory = GetEnv("TEMP")

Or you could get it with sql below:

SELECT
DBOWNER.DBNAME
FROM PS.PSDBOWNER DBOWNER

转载于:https://www.cnblogs.com/GoDevil/archive/2009/01/09/1372678.html

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- 7swz.com 版权所有 赣ICP备2024042798号-8

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务