Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 » SQL Anywhere 服务器 - SQL 的用法 » 远程数据和批量操作 » 远程数据访问 » 远程服务器

 

列出远程服务器上的表

您可以使用系统过程来查看远程服务器上所有表的部分列表或完整列表。

前提条件

无。

上下文和注释

多个。

 ♦ 列出远程服务器上的表
  • 调用 sp_remote_tables 系统过程以返回远程服务器上表的列表。

    如果指定 table_nametable_owner,则列表中仅包含与这些参数匹配的表。

结果

返回所有表的列表或表的部分列表。

下一步

无。

示例

例如,要从名为 excel 的远程服务器上获取所有可用 Microsoft Excel 工作表的列表,请执行下列语句:

CALL sp_remote_tables  excel;

或者,要获取生产数据库(在名为 asetest 的 Adaptive Server Enterprise 服务器中)中由 fred 拥有的所有表的列表,请执行下列语句:

CALL sp_remote_tables  asetest, null, fred, production;

 另请参见