如何使用 Java 从客户端在 Sybase IQ 中加载表?

发布于 2024-09-16 08:51:03 字数 179 浏览 4 评论 0原文

是否可以使用 LOAD TABLE ... USING CLIENT FILE 语句将文件从客户端计算机加载到 Sybase IQ 中的表中?

数据不是来自数据库,而是来自外部源。

可以使用 Java 中的 JDBC 驱动程序来完成此操作,并且仅将文件放在客户端计算机上吗?

如果是这样,怎么办?

Is it possible to load a file from a client computer into a table in Sybase IQ, using the LOAD TABLE ... USING CLIENT FILE statement?

The data does not come from a database, but rather an external source.

Can this be done using a JDBC driver in Java, and having the file only on the client computer?

If so, how?

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

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

发布评论

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

评论(2

帅气称霸 2024-09-23 08:51:03

试试这个:Sybase JConnect:ENABLE_BULK_LOAD 用法
另外,您可能想尝试 bcp。

Try this : Sybase JConnect: ENABLE_BULK_LOAD usage
Also, you may want to try bcp.

清旖 2024-09-23 08:51:03

经过一些研究和“概念验证”后,我得出的答案是:

使用 iAnywhere JDBC 驱动程序,它是 SyBase 的 SQL Anywhere Studio 软件套件的一部分。它不限于 SyBase 的标准 jConnect JDBC 驱动程序所使用的 TDS 协议。

http://www.sybase.com/detail?id=1037304

注意:此不是 Type 4 驱动程序,也不是纯 Java。

After doing some research, and a "proof-of-concept" this is the answer I have come up with:

Use the iAnywhere JDBC Driver, which is part of the SQL Anywhere Studio suite of software from SyBase. It is not limited to the TDS protocol, which the standard jConnect JDBC driver from SyBase is.

http://www.sybase.com/detail?id=1037304

Note: This is not a Type 4 driver, and is not pure Java.

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