gpt4 book ai didi

c - 在 DB2 上构建 UDF

转载 作者:太空宇宙 更新时间:2023-11-03 23:34:12 24 4
gpt4 key购买 nike

为了在 DB2 上运行用户定义函数,我应该下载和安装什么?

目前我已经安装了 Control Center,但我正在处理寻找 sqludf.h & bldrtn 文件,以便用 C 编写合适的代码。

我想答案真的很简单,但我仍然是数据库的新手。感谢您的帮助。

最佳答案

Windows 中的 C 头文件位于 DB2 安装文件夹下。在我的例子中是:

C:\Program Files\IBM\SQLLIB\include

另一个文件在

C:\Program Files\IBM\SQLLIB\samples\c

在 Linux/UNIX 中,位置应该类似

/opt/IBM/db2/V9.7/include

有关您正在使用的 header 的更多信息:

在 C 和 C++ 例程中创建 http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.apdv.routines.doc/doc/t0020586.html

sqludf.h的说明 http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.apdv.routines.doc/doc/c0009056.html

关于c - 在 DB2 上构建 UDF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8120268/

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