doc-exports/docs/dws/tool/dws_mt_0069.html
Lu, Huayi 346ac31da9 DWS TG 8.1.3.200 VERSION
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Reviewed-by: Jiang, Beibei <beibei.jiang@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2023-08-28 09:20:17 +00:00

5.8 KiB

DBC.TABLES

The DSC migrates dbc.tables to their corresponding mig_td_ext.vw_td_dbc_tables.

Example: databasename is migrated as mig_td_ext.vw_td_dbc_tables.schemaname.

Input

1
2
3
4
5
sel databasename,tablename FROM dbc.tables
WHERE tablekind='T' and trim(databasename) = '<dbname>'
AND
( NOT(TRIM(tablename) LIKE ANY  (<excludelist>))
);

Output

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
SELECT
         mig_td_ext.vw_td_dbc_tables.schemaname
                                , mig_td_ext.vw_td_dbc_tables.tablename

     FROM
         mig_td_ext.vw_td_dbc_tables
     WHERE
                                mig_td_ext.vw_td_dbc_tables.tablekind =  'T'
          AND TRIM(mig_td_ext.vw_td_dbc_tables.schemaname) = '<dbname>'
          AND( NOT( TRIM(mig_td_ext.vw_td_dbc_tables.tablename) LIKE ANY ( ARRAY[ < excludelist > ] ) ) )
;