将 excel 中生成的查询导入到 Teradata

发布于 2024-12-28 20:15:45 字数 93 浏览 1 评论 0原文

我现在已经使用宏在 Excel 中生成了一个查询“我想将这些查询导入到 teradata 中并自动编译并显示结果”。任何人都可以帮助我吗?

I have generated a query in the excel by using macros now "i want to import these queries into teradata and compile it and display the result Automatically".Can anyone help me with this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

自由范儿 2025-01-04 20:15:45

凭借数据库中足够的权限,您可以创建一个或多个封装查询的宏。如有必要,可以构建宏来接受参数。在 Teradata 上构建宏后,您可以将 Excel 宏中的 SQL 替换为:

EXEC {Database}.{Macro}({parm1}, {parm2}, ... {parmn});

Excel VBA - 在电子表格上查询 - 看一下这个问题的答案。您可能会找到一些东西来帮助您朝着正确的方向进行 VBA 编码。需要对其进行调整才能与您的 Teradata 环境连接。

With sufficient privileges in the database you can create a macro or macros that encapsulate the query. The macro(s) can be built to accept parameters if necessary. Once you have the macros built on Teradata you can replace the SQL in your Excel Macros with:

EXEC {Database}.{Macro}({parm1}, {parm2}, ... {parmn});

Excel VBA - Query on a Spreadsheet - Take a look at the answers on this SO question. You may find something to help you in the right direction with your VBA coding. It will need to be tweaked to connect with your Teradata environment.

七度光 2025-01-04 20:15:45

将您的查询存储到单个字符串变量中,并记住输入“;”查询之间。然后使用本指南
http://voices.yahoo.com/teradata-ms -excel-vba-2687156.html?cat=59

store your queries into single string variable and remember to put ";" between queries. then use this guide
http://voices.yahoo.com/teradata-ms-excel-vba-2687156.html?cat=59

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文