CREATE FOREIGN TABLE Statement - Analytics Database - Teradata Vantage

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-10-04
dita:mapPath
jco1628111346878.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
mdr1472255012272
lifecycle
latest
Product Category
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/')
);