forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
31 lines
10 KiB
HTML
31 lines
10 KiB
HTML
<a name="EN-US_TOPIC_0000001145513145"></a><a name="EN-US_TOPIC_0000001145513145"></a>
|
|
|
|
<h1 class="topictitle1">Importing Table Data</h1>
|
|
<div id="body1584526252527"><p id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_p33089196">Prerequisites:</p>
|
|
<ul id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_ul29367308"><li id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_li538057129524">If the definition of the source file does not match that of the target table, modify the properties of the target table in the <strong id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_b1215679418322">Import Table Data</strong> dialog box. Additional columns of the target table will be inserted with default values.</li><li id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_li56676898152335">You should know the export properties of the file to import, such as <strong id="EN-US_TOPIC_0000001145513145__b88498314614">Delimiter</strong>, <strong id="EN-US_TOPIC_0000001145513145__b13462126134613">Quotes</strong>, and <strong id="EN-US_TOPIC_0000001145513145__b11483021184613">Escape</strong>. Export properties saved during data export cannot be changed when a file is being imported.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_p62979183">Perform the following steps to import table data:</p>
|
|
<ol id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_ol29941743"><li id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_li46576945"><span>Right-click the selected table and select <strong id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_b2125089314148">Import Table Data</strong>.</span><p><div class="p" id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_p53993314104421">The <strong id="EN-US_TOPIC_0000001145513145__b1494933184817">Import Table Data</strong> dialog box is displayed with the following options:<ul id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_ul7847614104421"><li id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_li449412417617"><strong id="EN-US_TOPIC_0000001145513145__b341785712816">Import Data File</strong>: This option displays the path of the imported file. Click <strong id="EN-US_TOPIC_0000001145513145__b412715315913">Browse</strong> to select other files.</li><li id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_li7102181104421"><strong id="EN-US_TOPIC_0000001145513145__b127582312910">Format</strong>: Table data can be imported in CSV, TXT, or binary format. CSV is the default format.</li><li id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_li46166042104421"><strong id="EN-US_TOPIC_0000001145513145__b1552317341920">Include Header</strong>: Select this option if the imported file contains a column header. By default, this option is selected when a CSV or TXT file is exported, but it is not mandatory. This option will be disabled for the binary format.</li><li id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_li32954392104421"><strong id="EN-US_TOPIC_0000001145513145__b84513551492">Quotes</strong>: You can enter only a single-byte character for this option, and the value of <strong id="EN-US_TOPIC_0000001145513145__b55891411154516">Quotes</strong> should be different from the null value of <strong id="EN-US_TOPIC_0000001145513145__b1162112812455">Delimiter</strong>. By default, this option is selected when a CSV or TXT file is exported, but it is not mandatory. This option will be disabled for the binary format.</li><li id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_li34029790104421"><strong id="EN-US_TOPIC_0000001145513145__b1634225716461">Escape</strong>: You can enter only a single-byte character for this option. If the value of <strong id="EN-US_TOPIC_0000001145513145__b12727544104818">Escape</strong> is the same as that of <strong id="EN-US_TOPIC_0000001145513145__b139861849499">Quotes</strong>, the value of <strong id="EN-US_TOPIC_0000001145513145__b1191571674912">Escape</strong> will be replaced with <strong id="EN-US_TOPIC_0000001145513145__b1932053144915">\0</strong>. This option defaults to double quotation marks (") when a CSV or TXT file is exported, but it is not mandatory. This option will be disabled for the binary format.</li><li id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_li41754205104421"><strong id="EN-US_TOPIC_0000001145513145__b113220013112">Replace with Null</strong>: You can configure this option to replace the null value in the table with a string. The null string used for exporting data should be used for importing data, and the null string needs to be specified. By default, this option is selected when a CSV or TXT file is exported, but it is not mandatory. This option will be disabled for the binary format.</li><li id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_li81791349194010"><strong id="EN-US_TOPIC_0000001145513145__b1541254735513">Encoding</strong> (optional): This option will be pre-populated with the encoding options made in <strong id="EN-US_TOPIC_0000001145513145__b12353164613317">Preferences</strong> > <strong id="EN-US_TOPIC_0000001145513145__b18622144913337">Session Setting</strong>.</li><li id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_li30400825104421"><strong id="EN-US_TOPIC_0000001145513145__b1859732191216">Delimiter</strong>: You can select the provided delimiters or customize delimiters in <strong id="EN-US_TOPIC_0000001145513145__b102133815526">Delimiter</strong> > <strong id="EN-US_TOPIC_0000001145513145__b452610408524">Other</strong>. The default delimiter for CSV and TXT formats is commas (,). The value of this option should be different from those of <strong id="EN-US_TOPIC_0000001145513145__b153881725111212">Quotes</strong> and <strong id="EN-US_TOPIC_0000001145513145__b73888256124">Replace with Null</strong>. By default, this option is selected when a CSV or TXT file is imported, but it is not mandatory. This option will be disabled for the binary format. It is mandatory when the <strong id="EN-US_TOPIC_0000001145513145__b16452121265810">Other</strong> field is selected.</li><li id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_li6059948153148"><strong id="EN-US_TOPIC_0000001145513145__b73381824125317">All Columns</strong>: Use this option to quickly select all columns. This option is selected by default. To manually select columns, deselect this option and select the columns to export from the <strong id="EN-US_TOPIC_0000001145513145__b1563315421537">Available Columns</strong> list.<ul id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_ul4301616153356"><li id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_li64381530234744"><strong id="EN-US_TOPIC_0000001145513145__b141641315471">Available Columns</strong>: Use this option to select the columns to export.</li><li id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_li7853933234747"><strong id="EN-US_TOPIC_0000001145513145__b17680859101610">Selected Columns</strong>: This option displays the selected columns to export. The column sequence can be adjusted. By default, all columns are displayed.</li></ul>
|
|
</li></ul>
|
|
</div>
|
|
</p></li><li id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_li2621091792945"><span>Click <strong id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_b65580017181422">Browse</strong> next to the <strong id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_b53349247181422">Import Data File</strong> field.</span><p><p id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_p4884179092945">The <strong id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_b26321761181422">Open</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_li44678570"><span>In the <strong id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_b4200460814148">Open</strong> dialog box, select the file to import and click <strong id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_b4249715814148">Open</strong>.</span></li><li id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_li544488459315"><span>Complete the required fields and click <strong id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_b41119082104622">OK</strong>.</span><p><p id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_p54397957">The status bar displays the operation progress. The imported data will be added to the existing table data.</p>
|
|
<p id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_p44158424">The <strong id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_b61669846121644">Data Imported Successfully</strong> dialog box and status bar display the status of the completed operation.</p>
|
|
</p></li></ol>
|
|
<div class="section" id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_section9902201720719"><h4 class="sectiontitle">Canceling Table Data Import</h4><p id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_p19292185153919">Perform the following steps to cancel table data import:</p>
|
|
</div>
|
|
<ol id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_ol17150281"><li id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_li62990874"><span>Double-click the status bar to open the <strong id="EN-US_TOPIC_0000001145513145__b103101430595237">Progress View</strong> tab.</span></li><li id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_li45506409195828"><span>In the <strong id="EN-US_TOPIC_0000001145513145__b9295152741416">Progress View</strong> tab, click <span><img id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_image35961697195832" src="figure/en-us_image_0000001099153206.jpg" width="15.96" height="15.96" title="Click to enlarge" class="imgResize"></span>.</span></li><li id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_li18091518195833"><span>In the <strong id="EN-US_TOPIC_0000001145513145__b1319133573920">Cancel Operation</strong> dialog box, click <strong id="EN-US_TOPIC_0000001145513145__b531913517397">Yes</strong>.</span><p><p id="EN-US_TOPIC_0000001145513145__en-us_topic_0185264188_p1003418193219">The <strong id="EN-US_TOPIC_0000001145513145__b39013381895237">Messages</strong> tab and status bar display the status of the canceled operation.</p>
|
|
</p></li></ol>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="DWS_DS_94.html">Managing Table Data</a></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script language="JavaScript">
|
|
<!--
|
|
image_size('.imgResize');
|
|
var msg_imageMax = "view original image";
|
|
var msg_imageClose = "close";
|
|
//--></script> |