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

SAP Sybase SQL Anywhere 16.0 (中文) » SQL Anywhere 服务器 - SQL 用法 » 远程数据访问 » 远程服务器

 

列出远程服务器上的表 (SQL)

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

前提条件

无。

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

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

结果

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

要获取由 GROUPO 拥有的远程服务器 RemoteSA 中所有表的列表,可执行以下语句:

CALL sp_remote_tables('RemoteSA', null, 'GROUPO');

要获取由 Fred 拥有的 Adaptive Server Enterprise 服务器 RemoteASE 的 Production 数据库中所有表的列表,可执行以下语句:

CALL sp_remote_tables('RemoteASE', null, 'Fred', 'Production');

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

CALL sp_remote_tables('Excel');

 另请参见