HELP FOREIGNの使用例 - Teradata QueryGrid

Teradata® QueryGrid™ インストールとユーザー ガイド

Product
Teradata QueryGrid
Release Number
2.13
Published
2020年8月
Language
日本語
Last Update
2020-09-04
dita:mapPath
ja-JP/oow1591642881502.ditamap
dita:ditavalPath
ft:empty
dita:id
lfq1484661135852
Product Category
Analytical Ecosystem

例: TeradataからPrestoへのHELP FOREIGN SERVER

この例では、サーバーに関連付けられているカタログからスキーマ(データベース)を取得します。

help foreign server QG_Presto1;

結果:

Databases 
--------------------
default 
information_schema
finance
marketing

例: TeradataからPrestoへのHELP FOREIGN DATABASE

この例では、指定されたデータベースからテーブルを取得します。

help foreign database "default"@QG_Presto1;

結果:

Tables
---------------------
buses 
ca120453 
jing_part_tab1 
prama_part_tab1 
tbig_1row 
web_sales_part1_orc

例: TeradataからPrestoへのHELP FOREIGN TABLE

この例では、指定されたテーブルの列情報を取得します。

HELP FOREIGN TABLEを実行する場合、データベースまたはスキーマ名が指定されていても、されていなくても構いません。クエリーにデータベース名が指定されていない場合は、現在ログオン中のデータベースまたはデフォルトのコネクタが使用されます。
help foreign table tbig_1row@QG_Presto1;

結果:

Column    | Type    | Comment
————-——-----+—————-----+————-
id        | bigint  | 
firstname | varchar | 
lastname  | varchar | 
gender    | varchar | 
age       | bigint  |

例: TeradataからTeradataへのHELP FOREIGN FUNCTION

この例では、指定した外部関数に関する情報を取得します。

help foreign function syslib.MonitorQueryBand@td1 ;

結果:

            Parameter Name HostId
                     Type I2
                  Comment ?
                 Nullable Y
                   Format -(5)9
               Max Length             2
     Decimal Total Digits    ?
Decimal Fractional Digits    ?
              Table/View? F
                Char Type  ?
           Parameter Type I
                 UDT Name ?
Parameter Dictionary Name HostId
       Parameter SQL Name HostId
   Parameter Name UEscape ?
      UDT Dictionary Name ?
             UDT SQL Name ?
         UDT Name UEscape ?
            Inline Length             ?
           Parameter Name SessionNo
                     Type I
                  Comment ?
                 Nullable Y
                   Format -(10)9
               Max Length             4
     Decimal Total Digits    ?
Decimal Fractional Digits    ?
              Table/View? F
                Char Type  ?
           Parameter Type I
                 UDT Name ?
Parameter Dictionary Name SessionNo
       Parameter SQL Name SessionNo
   Parameter Name UEscape ?
      UDT Dictionary Name ?
             UDT SQL Name ?
         UDT Name UEscape ?
            Inline Length             ?
           Parameter Name RunVProcNo
                     Type I2
                  Comment ?
                 Nullable Y
                   Format -(5)9
               Max Length             2
     Decimal Total Digits    ?
Decimal Fractional Digits    ?
              Table/View? F
                Char Type  ?
           Parameter Type I
                 UDT Name ?
Parameter Dictionary Name RunVProcNo
       Parameter SQL Name RunVProcNo
   Parameter Name UEscape ?
      UDT Dictionary Name ?
             UDT SQL Name ?
         UDT Name UEscape ?
            Inline Length             ?
           Parameter Name RETURN0
                     Type CV
                  Comment ?
                 Nullable Y
                   Format X(12304)
               Max Length        24,608
     Decimal Total Digits    ?
Decimal Fractional Digits    ?
              Table/View? F
                Char Type  2
           Parameter Type O
                 UDT Name ?
Parameter Dictionary Name RETURN0
       Parameter SQL Name RETURN0
   Parameter Name UEscape ?
      UDT Dictionary Name ?
             UDT SQL Name ?
         UDT Name UEscape ?
            Inline Length             ?