Please try:
Code:
CREATE TABLE db2admin.dbcfg
AS (
SELECT dc.*
, CURRENT_TIMESTAMP AS snapshot_timestamp
FROM sysibmadm.dbcfg dc
)
WITH NO DATA
;
INSERT INTO db2admin.dbcfg
SELECT dc.*
, CURRENT_TIMESTAMP AS snapshot_timestamp
FROM sysibmadm.dbcfg dc
;
Rationale follows...
1) According to the manual "DB2 Version 9.5 for Linux, UNIX, and Windows SQL Reference, Volume 2
Updated March, 2008",
"as-result-table" option was supported by DB2 9.5.
Syntax:
CREATE TABLE
table-name as-result-table ...
as-result-table:
[(
column-name [,
column-name ...])] AS (
fullselect ) WITH NO DATA
2) But, you are using FP0.
Quote:
|
My system: DB2 v9.5_FP0 (Windows).
|
So, I don't know you can use that option or not.