Db2 Warehouse (on Cloud): 如何创建外部 table?

Db2 Warehouse (on Cloud): How to create external table?

根据“What's new in Db2 Warehouse on Cloud, ..." it is possible to create external tables. I looked at the linked documentation at the syntax on how to create such an external table to link to my Amazon S3 and my IBM Bluemix / Softlayer Swift Cloud Object Storage。我有一个云上的 Db2 仓库,带有 "Entry Plan",我没有看到任何提到的限制。

CREATE EXTERNAL TABLE exttab1(a int,s varchar(50)) using
  (dataobject 'testdata.csv'
   swift('https://fra02.objectstorage.softlayer.net/auth/v1.0/',
    'IBMOS12345:userid',
    '5---MyFullAPIKeyHere---b983',
    'henrik'
   )
  )

上面的 SQL 语句给出了我:

SQL0104N: database/sql/driver: [IBM][CLI Driver][DB2/LINUXX8664] SQL0104N An unexpected token "EXTERNAL" was found following "CREATE". Expected tokens may include: "". SQLSTATE=42601

正确的语法是什么?有没有我不知道的限制?

语法和其他一切都是正确的。我发现我的实例不在最新的代码级别。该文档领先于我的云环境。我现在可以使用 SQL.

从中创建上面的外部 table 和 SELECT