doc-exports/docs/dws/tool/DWS_DS_97.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

85 lines
10 KiB
HTML

<a name="EN-US_TOPIC_0000001233800663"></a><a name="EN-US_TOPIC_0000001233800663"></a>
<h1 class="topictitle1">Exporting Table DDL and Data</h1>
<div id="body1584526252527"><p id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_p25488274">The exported table DDL and data include the following:</p>
<ul id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_ul28067877"><li id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_li66668712">DDL of the table.</li><li id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_li63147504">Columns and rows of the table.</li></ul>
<p id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_p51284307">Follow the steps below to export the table DDL:</p>
<ol id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_ol58905579"><li id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_li31456624"><span>In the <strong id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_b37837480204333">Object Browser</strong> pane, right-click the selected table and select <strong id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_b2196203020492">Export DDL and Data</strong>.</span><p><p id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_p43070429">The <strong id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_b62260320134923">Data Studio Security Disclaimer</strong> dialog box is displayed.</p>
</p></li><li id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_li66152725"><span>Click <strong id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_b41306547134937">OK</strong>.</span><p><p id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_p63525430194913">The <strong id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_b56117908135030">Save As</strong> dialog box is displayed.</p>
</p></li><li id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_li20597618"><span>In the <strong id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_b30730045221922">Save As</strong> dialog box, select the location to save the DDL and click <strong id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_b8134957221922">Save</strong>. The status bar displays the progress of the operation.</span><p><div class="note" id="EN-US_TOPIC_0000001233800663__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_0000001233800663__en-us_topic_0185264794_ul449314116497"><li class="text" id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_li8259143214812">To cancel the export operation, double-click the status to open the <strong id="EN-US_TOPIC_0000001233800663__b15159424195916">Progress View</strong> tab and click <span><img id="EN-US_TOPIC_0000001233800663__image115992417598" src="figure/en-us_image_0000001233922443.jpg"></span>. For details, see <a href="DWS_DS_98.html#EN-US_TOPIC_0000001188521136__en-us_topic_0185264892_ref471314989">Canceling the Table Data Export Operation</a>.</li><li id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_li9982918172613">If the table name contains characters which are not supported by Windows, the exported file name will not be the same as table name.</li><li id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_li17561433124816">MS Visual C runtime file (msvcrt100.dll) is required to complete this operation. For details, see <a href="DWS_DS_145.html">Troubleshooting</a>.</li></ul>
</div></div>
<p id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_p10540732">The <strong id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_b43399395221323">Export</strong> message and status bar display the status of the completed operation.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233800663__en-us_topic_0185264794_table19231039731" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001233800663__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_0000001233800663__en-us_topic_0185264794_p182712399311"><strong id="EN-US_TOPIC_0000001233800663__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_0000001233800663__en-us_topic_0185264794_p5272039337"><strong id="EN-US_TOPIC_0000001233800663__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_0000001233800663__en-us_topic_0185264794_p1765821511101"><strong id="EN-US_TOPIC_0000001233800663__b59779771812">Support for Exporting a DDL</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001233800663__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_0000001233800663__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_0000001233800663__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_0000001233800663__en-us_topic_0185264794_p946516361597">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233800663__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_0000001233800663__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_0000001233800663__en-us_topic_0185264794_p94521734115915">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233800663__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_0000001233800663__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_0000001233800663__en-us_topic_0185264794_p840219321599">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233800663__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_0000001233800663__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_0000001233800663__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_0000001233800663__en-us_topic_0185264794_p03620392319">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233800663__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_0000001233800663__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_0000001233800663__en-us_topic_0185264794_p126309145015">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233800663__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_0000001233800663__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_0000001233800663__en-us_topic_0185264794_p5594117608">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233800663__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_0000001233800663__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_0000001233800663__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_0000001233800663__en-us_topic_0185264794_p12591636124510">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233800663__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_0000001233800663__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_0000001233800663__en-us_topic_0185264794_p13721745310">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233800663__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_0000001233800663__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_0000001233800663__en-us_topic_0185264794_p1578310471818">Yes</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="note" id="EN-US_TOPIC_0000001233800663__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_0000001233800663__en-us_topic_0185264794_p21975085613">You can select multiple objects from regular and partitioned tables to export DDL and data, including columns, rows, indexes, constraints, and partitions. <a href="DWS_DS_155.html#EN-US_TOPIC_0000001188681066__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>