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>
91 lines
10 KiB
HTML
91 lines
10 KiB
HTML
<a name="EN-US_TOPIC_0000001098833152"></a><a name="EN-US_TOPIC_0000001098833152"></a>
|
|
|
|
<h1 class="topictitle1">Exporting Table DDL and Data</h1>
|
|
<div id="body1584526252527"><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p25488274">The exported table DDL and data include the following:</p>
|
|
<ul id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_ul28067877"><li id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_li66668712">DDL of the table</li><li id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_li63147504">Columns and rows of the table</li></ul>
|
|
<p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p51284307">Perform the following steps to export the table DDL and data:</p>
|
|
<ol id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_ol58905579"><li id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_li31456624"><span>In the <strong id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_b37837480204333">Object Browser</strong> pane, right-click the selected table and select <strong id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_b2196203020492">Export DDL and Data</strong>.</span><p><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p43070429">The <strong id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_b62260320134923">Data Studio Security Disclaimer</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_li66152725"><span>Click <strong id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_b41306547134937">OK</strong>.</span><p><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p63525430194913">The <strong id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_b56117908135030">Save As</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_li20597618"><span>In the <strong id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_b30730045221922">Save As</strong> dialog box, select the location to save the DDL and click <strong id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_b8134957221922">Save</strong>. The status bar displays the operation progress.</span><p><div class="note" id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_note50386953"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_ul449314116497"><li class="text" id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_li8259143214812">To cancel the export operation, double-click the status bar to open the <strong id="EN-US_TOPIC_0000001098833152__b31211045195418">Progress View</strong> tab and click <span><img id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_image1525943234812" src="figure/en-us_image_0000001145713169.jpg" width="17.955000000000002" height="16.9575" title="Click to enlarge" class="imgResize"></span>. For details, see <a href="DWS_DS_98.html#EN-US_TOPIC_0000001098673338__en-us_topic_0185264892_ref471314989">Canceling Table Data Export</a>.</li><li id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_li9982918172613">If the file name contains characters that are not supported by Windows, the file name will be different from the schema name.</li><li id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_li17561433124816">The Microsoft Visual C Runtime file (<strong id="EN-US_TOPIC_0000001098833152__b9892122115614">msvcrt100.dll</strong>) is required for this operation. For details, see <a href="DWS_DS_145.html">Troubleshooting</a>.</li></ul>
|
|
</div></div>
|
|
<p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p10540732">The <strong id="EN-US_TOPIC_0000001098833152__b9166733155418">Data Exported Successfully</strong> dialog box and status bar display the status of the completed operation.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_table19231039731" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_row14266399318"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.4.3.2.3.1.4.1.1"><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p182712399311"><strong id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_b188941957125613">Database Encoding</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.4.3.2.3.1.4.1.2"><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p5272039337"><strong id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_b589625755616">File Encoding</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.4.3.2.3.1.4.1.3"><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p1765821511101"><strong id="EN-US_TOPIC_0000001098833152__b87674938695251">Support for Exporting DDL</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_row1465193611592"><td class="cellrowborder" rowspan="3" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.3.1.4.1.1 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p11711124110594">UTF-8</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.3.1.4.1.2 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p6562114412591">UTF-8</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.3.1.4.1.3 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p946516361597">Yes</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_row6450163418591"><td class="cellrowborder" valign="top" headers="mcps1.3.4.3.2.3.1.4.1.1 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p15452183425919">GBK</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.4.3.2.3.1.4.1.2 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p94521734115915">Yes</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_row12402232195917"><td class="cellrowborder" valign="top" headers="mcps1.3.4.3.2.3.1.4.1.1 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p19402632145916">LATIN1</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.4.3.2.3.1.4.1.2 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p840219321599">Yes</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_row1835193910317"><td class="cellrowborder" rowspan="3" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.3.1.4.1.1 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p33583919312">GBK</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.3.1.4.1.2 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p23612395319">GBK</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.3.1.4.1.3 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p03620392319">Yes</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_row166304144010"><td class="cellrowborder" valign="top" headers="mcps1.3.4.3.2.3.1.4.1.1 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p56301514407">UTF-8</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.4.3.2.3.1.4.1.2 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p126309145015">Yes</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_row205945171408"><td class="cellrowborder" valign="top" headers="mcps1.3.4.3.2.3.1.4.1.1 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p9594317608">LATIN1</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.4.3.2.3.1.4.1.2 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p5594117608">No</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_row1125843617458"><td class="cellrowborder" rowspan="3" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.3.1.4.1.1 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p11259163610455">LATIN1</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.3.1.4.1.2 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p172591836204513">LATIN1</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.3.1.4.1.3 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p12591636124510">Yes</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_row1637216452013"><td class="cellrowborder" valign="top" headers="mcps1.3.4.3.2.3.1.4.1.1 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p5372545915">GBK</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.4.3.2.3.1.4.1.2 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p13721745310">No</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_row678318471115"><td class="cellrowborder" valign="top" headers="mcps1.3.4.3.2.3.1.4.1.1 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p1278394715113">UTF-8</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.4.3.2.3.1.4.1.2 "><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p1578310471818">Yes</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="note" id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_note295355513594"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001098833152__en-us_topic_0185264794_p21975085613">You can select multiple objects from ordinary and partitioned tables to export DDL and data, including columns, rows, indexes, constraints, and partitions. <a href="DWS_DS_155.html#EN-US_TOPIC_0000001098993156__en-us_topic_0185264547_li1037472864716">Batch Export</a> lists the objects whose DDL and data cannot be exported.</p>
|
|
</div></div>
|
|
</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> |