Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
调用用户定义函数时,如果没有明确提及数据库,会考虑哪个数据库?是否有任何控制设置指定首先引用哪个数据库?
我得到了答案,在 TD 文档中,首先优先考虑的是 syslib 数据库,然后是 TD_SYSFNLIB。
TD_SYSFNLIB中的udf是系统自带的(内嵌服务功能),syslib中的是客户开发的。
如果您尝试仅使用函数名称调用嵌入式服务函数,但在当前数据库或 SYSLIB 数据库中还有一个同名的客户开发的 UDF,Teradata Database 将执行客户开发的 UDF 而不是嵌入式服务功能。