HiRDB Datareplicator Version 8 Description, User's Guide and Operator's Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Glossary]](FIGURE/GLOSS.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
5.5.3 Extraction definition statement
(1) Format
{{ extract authorization-identifier.table-identifier({column-name[{{,column-
name }} ...]|* })
to update-information-name
key|ukey(column-name[{{,column-name }} ...])[check {not_null_unique|unique|none}] }} ...
(2) Explanation of the operands
- If you specify the key clause, also specify columns that are not a mapping key in the extract statement. Because mapping keys with the key clause specified are not updated, data cannot be extracted if only mapping-key columns are specified. If you specify the ukey clause, you can specify mapping-key columns only in the extract statement.
- You can extract null-value data.
- The authorization identifier, table identifier, column name, update information name, and target identifier specifications are case-sensitive.
- If you specify an authorization identifier, table identifier, column name, update information name, or target identifier that is the same as a source Datareplicator reserved word, you must enclose it in double quotation marks ("). For details about the source Datareplicator reserved words, see Appendix B. Datareplicator Reserved Words.
- A column name specified as part of the mapping key cannot be specified more than once in the extract statement.
- If you update the mapping key when the key clause is specified, the target system uses the updated data as the key. For this reason, an error might occur during import processing (no data with matching key) or data might be imported into an unexpected row. It is not advisable to update the mapping key.
All rights reserved. Copyright (C) 2007, 2013, Hitachi, Ltd.