CREATE FOREIGN TABLE文 - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQLデータ定義言語 構文規則および例

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
2021年7月
Language
日本語
Last Update
2021-09-23
dita:mapPath
ja-JP/spp1591731285373.ditamap
dita:ditavalPath
ja-JP/wrg1590696035526.ditaval
dita:id
B035-1144
Product Category
Software
Teradata Vantage
CREATE FOREIGN TABLE riverflow_csv,
  EXTERNAL SECURITY MyAuthObj (
    Location VARCHAR(2048) CHARACTER SET UNICODE CASESPECIFIC,
    GageHeight2 DOUBLE PRECISION FORMAT '-ZZZ9.99',
    Flow DOUBLE PRECISION FORMAT '-ZZZZ9.99',
    site_no BIGINT,
    datetime VARCHAR(16) CHARACTER SET UNICODE CASESPECIFIC,
    Precipitation DOUBLE PRECISION FORMAT '-ZZZ9.99',
    GageHeight DOUBLE PRECISION FORMAT '-ZZZ9.99'
  )
  USING (
    LOCATION ('/s3/YOUR-BUCKET.s3.amazonaws.com/CSVDATA/')
  );