forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: luhuayi <luhuayi@huawei.com> Co-committed-by: luhuayi <luhuayi@huawei.com>
254 lines
58 KiB
HTML
254 lines
58 KiB
HTML
<a name="EN-US_TOPIC_0000001860318649"></a><a name="EN-US_TOPIC_0000001860318649"></a>
|
|
|
|
<h1 class="topictitle1">Managing Table Data</h1>
|
|
<div id="body1584526252526"><p id="EN-US_TOPIC_0000001860318649__p115781471011">After creating a table, you can query, edit, and analyze the table and table data.</p>
|
|
<div class="section" id="EN-US_TOPIC_0000001860318649__section13064991419"><a name="EN-US_TOPIC_0000001860318649__section13064991419"></a><a name="section13064991419"></a><h4 class="sectiontitle">Viewing Table Data</h4><p id="EN-US_TOPIC_0000001860318649__p46701949202913">Right-click the selected table and select <strong id="EN-US_TOPIC_0000001860318649__b19831881247">View Table Data</strong>. The <strong id="EN-US_TOPIC_0000001860318649__b1099482212410">View Table Data</strong> tab is displayed where you can view the table data information.</p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p424072210154"><span><img id="EN-US_TOPIC_0000001860318649__image112494222152" src="figure/en-us_image_0000001813439376.png" width="492.1" height="114.6327" title="Click to enlarge" class="imgResize"></span></p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p1885144052917"></p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p13815149151510"></p>
|
|
<p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_p19391163815514">Toolbar menu in the <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_b4631142142017">View Table Data</strong> window:</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_table1019603835113" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_row13392133855112"><th align="left" class="cellrowborder" valign="top" width="24.14%" id="mcps1.3.2.7.1.3.1.1"><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_p11392143875114"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_b816510267215">Toolbar Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="75.86%" id="mcps1.3.2.7.1.3.1.2"><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_p139273818512"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_b7564103202111">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_row153921738125112"><td class="cellrowborder" valign="top" width="24.14%" headers="mcps1.3.2.7.1.3.1.1 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_p2392203819512">Copy</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="75.86%" headers="mcps1.3.2.7.1.3.1.2 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_p14393123825117">Click the icon to copy selected content from <strong id="EN-US_TOPIC_0000001860318649__b117359683681048">View Table Data</strong> window to clipboard. Shortcut key - <strong id="EN-US_TOPIC_0000001860318649__b202483493281048">Ctrl+C</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_row383217111310"><td class="cellrowborder" valign="top" width="24.14%" headers="mcps1.3.2.7.1.3.1.1 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_p68321471132">Advanced Copy</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="75.86%" headers="mcps1.3.2.7.1.3.1.2 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_p58323715135">Click the icon to copy content from result window to the clipboard. Results can be copied to include the row number and/or column header. Refer to <a href="DWS_DS_005.html#EN-US_TOPIC_0000001813438860__table1510418570339">Table 1</a> to set this preference. The shortcut key is <strong id="EN-US_TOPIC_0000001860318649__b99081186781048">Ctrl+Shift+C</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_row193931238105119"><td class="cellrowborder" valign="top" width="24.14%" headers="mcps1.3.2.7.1.3.1.1 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_p93931338205116">Show/Hide Search Bar</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="75.86%" headers="mcps1.3.2.7.1.3.1.2 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_p203945381519">Click the icon to display/hide the search text field. This is a toggle button.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_row188945372910"><td class="cellrowborder" valign="top" width="24.14%" headers="mcps1.3.2.7.1.3.1.1 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_p13894103202913">Encoding</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="75.86%" headers="mcps1.3.2.7.1.3.1.2 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_p224472815310">Refer to <a href="DWS_DS_035.html#EN-US_TOPIC_0000001860318949__en-us_topic_0185264856_section16147111413113">Execute SQL Queries</a> for information on encoding selection.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_p112335291720">Icons in the Search field:</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_table710852112012" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_row141091221202020"><th align="left" class="cellrowborder" valign="top" width="24.14%" id="mcps1.3.2.9.1.3.1.1"><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_p1210962132020"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_b11689345102113">Icon Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="75.86%" id="mcps1.3.2.9.1.3.1.2"><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_p1210915219200"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_b378975215217">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_row1211014216205"><td class="cellrowborder" valign="top" width="24.14%" headers="mcps1.3.2.9.1.3.1.1 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_p15110521132018">Search</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="75.86%" headers="mcps1.3.2.9.1.3.1.2 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_p41111521112018">Click the icon to search the table data displayed based on the criteria defined. The text is case-insensitive.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_row1911122119201"><td class="cellrowborder" valign="top" width="24.14%" headers="mcps1.3.2.9.1.3.1.1 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_p61113210200">Clear Search Text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="75.86%" headers="mcps1.3.2.9.1.3.1.2 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_p131121121162013">Click the icon to clear the search texts entered in the search field.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="p" id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_p1956854814118">Refer to <a href="DWS_DS_035.html#EN-US_TOPIC_0000001860318949__en-us_topic_0185264856_section16147111413113">Execute SQL Queries</a> for column reordering and sorting options.<ul id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_ul4257112011459"><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_li6430828111331"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_b10886150185914">Query Submit Time</strong>: Provides the query submitted time.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_li28572972182337">Number of rows fetched with execution time is displayed. The default number of rows is displayed. If there are additional rows to be fetched, then it will be denoted with the word "more". You can scroll to the bottom of the table to fetch and display all rows.<div class="notice" id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_note1923353611319"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_ul15176349135212"><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_li91761849185213">When you view table data, Data Studio automatically adjusts the column widths for an optimal table view. You can resize the columns as needed. If the text content of a cell exceeds the total available display area, then resizing the cell column may cause DS to become unresponsive.</li></ul>
|
|
<ul id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_ul943135324117"><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_li203261622153010">When the data in a table cell is more than 1,000 characters, it will be trimmed to 1,000 characters with "..." at the end.</li></ul>
|
|
</div></div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="note" id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_note23129319184842"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_ul6837280184842"><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_li61535526184842">Individual table data window is displayed for each table.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_li30677554184842">If the data of the table that is already opened is modified, then refresh and open the table data again to view the updated information on the same opened window.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_li3372804518496">While the data is loading a message displays at the bottom stating "fetching".</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_li188371424111011">If the text of a column contains spaces, word wrapping is applied to fit the column width. Word wrapping is not applied to columns without spaces.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_li5724335104514">Select part of cell content and press <strong id="EN-US_TOPIC_0000001860318649__b159916228498">Ctrl</strong>+<strong id="EN-US_TOPIC_0000001860318649__b886992416499">C</strong>.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264820_li1295182713103">The size of a column is determined by the maximum content length in the column.</li></ul>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001860318649__section1226872111129"><a name="EN-US_TOPIC_0000001860318649__section1226872111129"></a><a name="section1226872111129"></a><h4 class="sectiontitle">Editing Table Data</h4><p id="EN-US_TOPIC_0000001860318649__p73878279129">Right-click the selected table and select <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264734_b87407368222">Edit Table Data</strong>. The <strong id="EN-US_TOPIC_0000001860318649__b181279125881048">Edit Table</strong> data tab is displayed.</p>
|
|
<p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264734_p8160103210253">Refer to <a href="#EN-US_TOPIC_0000001860318649__section13064991419">Viewing Table Data</a> for description on copy and search toolbar options.</p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p11802121031710"><span><img id="EN-US_TOPIC_0000001860318649__image5376173111720" src="figure/en-us_image_0000001860319081.png"></span></p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p185271095115"></p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p584212532169">Data Studio validates only the following data types entered into cells: Bigint, bit, boolean, char, date, decimal, double, float, integer, numeric, real, smallint, tinyint, and varchar.</p>
|
|
<p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264734_p21259248">Editing of array data, time with time zone, and time stamp with time zone are not supported.</p>
|
|
<p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264734_p44277527">Any related errors during this operation reported by database will be displayed in Data Studio.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001860318649__section411664918172"><h4 class="sectiontitle">Reindexing a Table</h4><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264385_p43847892">Index facilitates lookup of records. You need to reindex tables in the following scenarios:</p>
|
|
<ul id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264385_ul59086710"><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264385_li61461766">The index is corrupted and no longer contains valid data. Although in theory this will never happen, in practice, indexes can become corrupted due to software bugs or hardware failures. Reindexing provides a recovery method.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264385_li16284982">An index in the GaussDB(DWS) database may have numerous empty or nearly empty pages when accessed in an unconventional manner. By using the REINDEX mode, the space used by the index can be reduced. This mode creates a new index without any empty pages.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264385_li12347112">You have altered a storage parameter (such as the fill factor) for an index, and wish to ensure that the change has taken full effect.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264385_p62018344">Follow the steps below to reindex a table:</p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p148751615171810">Right-click the selected table and select <strong id="EN-US_TOPIC_0000001860318649__b1455615172139">Reindex Table</strong>. A pop-up message and the status bar display the status of the completed operation.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264385_note63371331153820"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264385_p4337231173810">This operation is not supported for Partition ORC tables.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001860318649__section1559429191712"><h4 class="sectiontitle">Analyzing a Table</h4><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264811_p16048282">The analyzing table operation collects statistics about tables and table indexes and stores the collected information in internal tables of the database where the query optimizer can access the information and use it to help make better query planning choices.</p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p494013418171">Right-click the selected table and select <strong id="EN-US_TOPIC_0000001860318649__b1855571521514">Analyze Table</strong>. The <strong id="EN-US_TOPIC_0000001860318649__b7531173112157">Analyze Table</strong> message and status bar displays the status of the completed operation.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001860318649__section63011957185319"><h4 class="sectiontitle">Truncating a Table</h4><p id="EN-US_TOPIC_0000001860318649__p1231182921619">This operation deletes the all data from an existing table. Exercise caution when performing this operation.</p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p8328337181613">Right-click the selected table and select <strong id="EN-US_TOPIC_0000001860318649__b930415112487">Truncate Table</strong>. Data Studio prompts you to confirm this operation. In the confirmation dialog box, click <strong id="EN-US_TOPIC_0000001860318649__b1956211598489">OK </strong>to complete the operation successfully.</p>
|
|
<p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264782_p1530255121512">A pop-up message and the status bar display the status of the completed operation.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001860318649__section11216112955013"><h4 class="sectiontitle">ER Diagrams</h4><p id="EN-US_TOPIC_0000001860318649__p1473819303505">View table relationships, including primary keys, foreign keys, and associated tables with ER diagram.</p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p17525131525"><span><img id="EN-US_TOPIC_0000001860318649__image8533813135218" src="figure/en-us_image_0000001860319073.png"></span></p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p18229716143513"></p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001860318649__section6179115310488"><h4 class="sectiontitle">Vacuuming a Table</h4><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264801_p49900666">Vacuuming table operation reclaims space and makes it available for re-use.</p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p1807182184915">Right-click the selected table and select <strong id="EN-US_TOPIC_0000001860318649__b18615017358">Vacuum Table</strong>. The <strong id="EN-US_TOPIC_0000001860318649__b19128182243510">Vacuum Table</strong> message and status bar display the status of the completed operation.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001860318649__section1683591811464"><h4 class="sectiontitle">Setting the Table Description</h4><p id="EN-US_TOPIC_0000001860318649__p7868217470">Right-click the selected table and select <strong id="EN-US_TOPIC_0000001860318649__b1713515918117">Set Table Description</strong>. The <strong id="EN-US_TOPIC_0000001860318649__b15370133212218">Update Table Description</strong> dialog box is displayed. It prompts you to set the table description.</p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p1422541274713"><span><img id="EN-US_TOPIC_0000001860318649__image686505724618" src="figure/en-us_image_0000001860199249.png"></span></p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p68905244371"></p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p286818111471">Enter the description and click <strong id="EN-US_TOPIC_0000001860318649__b19739378315">OK</strong>. The status bar displays the status of the completed operation.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001860318649__section157121042444"><h4 class="sectiontitle">Setting a Schema</h4><p id="EN-US_TOPIC_0000001860318649__p1372095434410">Right-click the selected table and select <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264847_b2540153113218">Set Schema</strong>. The <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264847_b1761805663217">Set Schema</strong> dialog box is displayed, prompting you to select the new schema for the selected table.</p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p14720654164414">Select the schema name from the drop-down list and click <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264847_b937775103314">OK</strong>. The selected table will be moved to the new schema.</p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p1772025444411"><span><img id="EN-US_TOPIC_0000001860318649__image1277219495447" src="figure/en-us_image_0000001813439372.png"></span></p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p19689555105819"></p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p818512499445">The status bar displays the status of the completed operation.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001860318649__note1118584917443"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001860318649__ul118554994419"><li id="EN-US_TOPIC_0000001860318649__li5185184954418">This operation is not supported for partitioned ORC tables.</li><li id="EN-US_TOPIC_0000001860318649__li111851649174417">If the required schema contains a table with the same name as the current table, then Data Studio does not allow setting the schema for the table.</li></ul>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001860318649__section32742219385"><a name="EN-US_TOPIC_0000001860318649__section32742219385"></a><a name="section32742219385"></a><h4 class="sectiontitle">Exporting Table Data</h4><ol id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_ol54863279"><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_ole_link39"><span>Right-click the selected table and select <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b15373228185916">Export Table Data</strong>.</span><p><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_p39267319234722">The <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b441883115917">Export Table Data </strong>dialog box is displayed with the following options:</p>
|
|
<ul id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_ul9957267234744"><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li22506547234744"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b1676153445914">Format</strong>: Table data can be exported in Excel (xlsx/xls), CSV, TXT, or binary format. The default format is Excel (xlsx/xls).</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li11091004234744"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b199561981201">Include Header</strong>: This option is available for CSV and TXT files. If this option is selected, the exported data will include the column headers. 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 Excel (xlsx/xls) and binary formats.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li25956130234744"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b10389133711010">Quotes</strong>: Use this option to define quotes. You can enter only a single-byte character for this option, and the value of <strong id="EN-US_TOPIC_0000001860318649__b167316441081048">Quotes</strong> should be different from that of <strong id="EN-US_TOPIC_0000001860318649__b65570060681048">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 Excel (xlsx/xls) and binary formats.<ul id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_ul67104399152425"><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li65968064152434">If table data includes delimiters, the character specified in this option will be used.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li58469702152439">If the value includes a quote, it will not be escaped by the same quote.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li9633929152424">If the result contains the values of multiple rows, it will be quoted by quotes.</li></ul>
|
|
</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li22071756234744"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b4266145915010">Escape</strong>: Use this option to define escape values. You can enter only a single-byte character for this option, and the value of <strong id="EN-US_TOPIC_0000001860318649__b130729573781048">Escape</strong> must be different from that of <strong id="EN-US_TOPIC_0000001860318649__b5556154381048">Quotes</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 Excel (xlsx/xls) and binary formats.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li42981794234744"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b18489131811114">Replace NULL with</strong>: Use this option to replace the null value in the table with a specified string. This option contains a maximum of 100 characters, and cannot contain newline characters or carriage return characters. The value of this option must be different from the values of <strong id="EN-US_TOPIC_0000001860318649__b27227402881048">Delimiter</strong> and <strong id="EN-US_TOPIC_0000001860318649__b39231625081048">Quotes</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 Excel (xlsx/xls) and binary formats.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li1726719111344"><strong id="EN-US_TOPIC_0000001860318649__b51580493781048">Encoding</strong> (optional): This option will be pre-populated with the encoding options made in the <strong id="EN-US_TOPIC_0000001860318649__b148274044781048">Preferences > Session Setting</strong> tab.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li12110069234744"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b145815461210">Delimiter</strong>: Use this option to define delimiters. You can select the provided delimiters or customize delimiters in <strong id="EN-US_TOPIC_0000001860318649__b134613716681048">Delimiter</strong> > <strong id="EN-US_TOPIC_0000001860318649__b199120980581048">Other</strong>. The default delimiter for CSV and TXT formats is commas (,). The <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b72286519218">Other</strong> field can contain a maximum of 10 bytes. 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 Excel (xlsx/xls) and binary formats. It is mandatory when the <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b1821419127211">Other</strong> field is selected.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li6059948153148"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b20378717829">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_0000001860318649__en-us_topic_0185264892_b974515402215">Available Columns </strong>list.<ul id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_ul4301616153356"><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li64381530234744"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b182482619312">Available Columns</strong>: Use this option to select the columns to export.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li7853933234747"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b5488151211312">Selected Columns</strong>: This option displays the selected columns to export. The column sequence can be adjusted. By default, all columns are displayed in this option.<div class="note" id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_note1470425611615"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_p97041956566">The .xlsx format supports a maximum of 1 million rows and 16,384 columns. The .xls format supports a maximum of 64,000 rows and 256 columns.</p>
|
|
</div></div>
|
|
</li></ul>
|
|
</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li575413278812"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b177413220312">File Name</strong>: Use this option to specify the name of the exported file. By default, the table name is displayed in this option.<div class="note" id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_note4755101061117"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_p7755151021110">The file name follows the Windows file naming convention.</p>
|
|
</div></div>
|
|
</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li140142041218"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b1690212295315">Output Path</strong>: Use this option to select the location where the exported file is saved. The <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b1967515318310">Output Path</strong> field is auto-populated with the selected path.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li47521447234744"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b0982125619311">Security Disclaimer</strong>: This option displays the security disclaimer. To continue the export operation, you need to read and agree to the disclaimer.<ul id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_ul25712796153516"><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li27524314214218"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b8337501649">I Agree</strong>: By default this option is selected. You cannot proceed if this option is deselected.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li1478988221433"><strong id="EN-US_TOPIC_0000001860318649__b109397867581048">Do not show again</strong>: You can select this option to hide the <strong id="EN-US_TOPIC_0000001860318649__b129811197081048">Security Disclaimer</strong> for the subsequent table data export from the current Data Studio instance.</li></ul>
|
|
</li></ul>
|
|
<div class="note" id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_note1663303417569"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_ul14799132205714"><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li124819583444">String, double, date, calendar, and Boolean data will be stored in the Excel format. All other data types will be converted into strings and stored in the Excel format.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li19280125244710">To export an Excel file, if a cell contains more than 32767 characters, the data exported to the cell will be truncated.</li></ul>
|
|
</div></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li3732382323480"><span>Complete the required fields and click <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b144236169410">OK</strong>.</span><p><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_p1897711717351">The <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b625610101015">Save As</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li1510181273511"><span>Click <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b164021667107">Save </strong>to save the exported data in the selected format. The status bar displays the progress of the operation.</span><p><div class="p" id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_p17181840599">The <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_b9927121316107">Data Exported Successfully</strong> dialog box and status bar displays the status of the completed operation.<div class="note" id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_note209712103510"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_ul291412153520"><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li291812113518">If the disk is full during table export, Data Studio displays an I/O error. Perform the following operations to rectify this error:<ol type="a" id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_ol791812113517"><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li12871213510">Click <strong id="EN-US_TOPIC_0000001860318649__b128710382181048">OK</strong> to close the connection profile.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li697128350">Clean the disk.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li6918123357">Re-establish the connection and export the table data.</li></ol>
|
|
</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264892_li14991217352">The exported file name will not be the same as table name, if the table name contains characters which are not supported by Windows.</li></ul>
|
|
</div></div>
|
|
</div>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001860318649__section184701117153519"><h4 class="sectiontitle">Importing Table Data</h4><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_p33089196">Prerequisites:</p>
|
|
<ul id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_ul29367308"><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_li538057129524">If the definition of the source file does not match that of the destination table, modify the properties of the destination table in the <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_b1235552551515">Import Table Data</strong> dialog box. Additional columns of the destination table will be inserted with default values.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_li56676898152335">You should know the export properties of the file to be imported, such as <strong id="EN-US_TOPIC_0000001860318649__b1271427711">Delimiter</strong>, <strong id="EN-US_TOPIC_0000001860318649__b57627715">Quotes</strong>, and <strong id="EN-US_TOPIC_0000001860318649__b17719271517">Escape</strong>. Export properties saved during data export cannot be changed when a file is being imported.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_p62979183">Perform the following steps to import table data:</p>
|
|
<ol id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_ol29941743"><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_li46576945"><span>Right-click the selected table and select <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_b15304542131518">Import Table Data</strong>.</span><p><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_p53993314104421">The <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_b16540124520159">Import Table Data</strong> dialog box is displayed with the following options:</p>
|
|
<ul id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_ul7847614104421"><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_li449412417617"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_b737194911154">Import Data File</strong>: This option displays the path of the imported file. Click <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_b10881135416157">Browse</strong> to select other files.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_li7102181104421"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_b147021624101713">Format</strong>: Table data can be imported in CSV, TXT, or binary format. CSV is the default format.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_li46166042104421"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_b297618472170">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_0000001860318649__en-us_topic_0185264188_li32954392104421"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_b9802185301716">Quotes</strong>: You can enter only a single-byte character for this option, and the value of <strong id="EN-US_TOPIC_0000001860318649__b65581862281048">Quotes</strong> should be different from the null value of <strong id="EN-US_TOPIC_0000001860318649__b198760326581048">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_0000001860318649__en-us_topic_0185264188_li34029790104421"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_b481058201717">Escape</strong>: You can enter only a single-byte character for this option. If the value of <strong id="EN-US_TOPIC_0000001860318649__b82688435581048">Escape</strong> is the same as that of <strong id="EN-US_TOPIC_0000001860318649__b102366058681048">Quotes</strong>, the value of <strong id="EN-US_TOPIC_0000001860318649__b96205588081048">Escape</strong> will be replaced with <strong id="EN-US_TOPIC_0000001860318649__b155474099081048">\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_0000001860318649__en-us_topic_0185264188_li41754205104421"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_b174151910131816">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_0000001860318649__en-us_topic_0185264188_li81791349194010"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_b16565016191814">Encoding</strong> (optional): This option will be pre-populated with the encoding options made in the <strong id="EN-US_TOPIC_0000001860318649__b91173628081048">Preferences > Session Setting</strong> tab.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_li30400825104421"><strong id="EN-US_TOPIC_0000001860318649__b90964675881048">Delimiter</strong>: You can select the provided delimiters or customize delimiters in <strong id="EN-US_TOPIC_0000001860318649__b199052351481048">Delimiter</strong> > <strong id="EN-US_TOPIC_0000001860318649__b116749373681048">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_0000001860318649__b75589363581048">Quotes</strong> and <strong id="EN-US_TOPIC_0000001860318649__b28872683181048">Replace with Null</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. It is mandatory when the <strong id="EN-US_TOPIC_0000001860318649__b185107111981048">Other</strong> field is selected.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_li6059948153148"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_b12395336101811">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_0000001860318649__en-us_topic_0185264188_b8352174041810">Available Columns </strong>list.<ul id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_ul4301616153356"><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_li64381530234744"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_b17284346121817">Available Columns</strong>: Use this option to select the columns to export.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_li7853933234747"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_b234695013184">Selected Columns</strong>: This option displays the selected columns to export. The column sequence can be adjusted. By default, all columns are displayed in this option.</li></ul>
|
|
</li></ul>
|
|
</p></li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_li2621091792945"><span>Click <strong id="EN-US_TOPIC_0000001860318649__b3532603781048">Browse</strong> next to the <strong id="EN-US_TOPIC_0000001860318649__b77344809081048">Import Data File</strong> field.</span><p><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_p4884179092945">The <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_b669812118196">Open</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_li44678570"><span>In the <strong id="EN-US_TOPIC_0000001860318649__b100979457281048">Open</strong> dialog box, select the file to import and click <strong id="EN-US_TOPIC_0000001860318649__b191905239681048">Open</strong>.</span></li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_li544488459315"><span>Complete the required fields and click <strong id="EN-US_TOPIC_0000001860318649__b113395756581048">OK</strong>.</span><p><p id="EN-US_TOPIC_0000001860318649__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_0000001860318649__en-us_topic_0185264188_p44158424">The <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264188_b2544333201910">Data Imported Successfully</strong> dialog box and status bar display the status of the completed operation.</p>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001860318649__section113524993315"><h4 class="sectiontitle">Show DDL</h4><p id="EN-US_TOPIC_0000001860318649__p1750203173414">Right-click the table, and then select <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264220_b12166994157">Show DDL</strong>. Data Studio displays the DDL of the selected table.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264220_note1492919485388"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264220_ul2639165410518"><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264220_li9638254651">A new terminal window is opened each time you select to show DDL.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264220_li1063975420516">MS Visual C runtime file (msvcrt100.dll) is required to complete this operation. For details, see <a href="DWS_DS_039.html#EN-US_TOPIC_0000001813439016__en-us_topic_0185264982_li1161793674918">Troubleshooting</a>.</li></ul>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001860318649__section354923914256"><h4 class="sectiontitle">Exporting Table DDL and Data</h4><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264794_p25488274">Follow the steps below to export the table DDL:</p>
|
|
<ol id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_ol24145451"><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_li41061555"><span>In the <strong id="EN-US_TOPIC_0000001860318649__b171235564191">Object Browser</strong> pane, right-click the selected table and select <strong id="EN-US_TOPIC_0000001860318649__b161245567194">Export DDL and Data</strong>.</span><p><p id="EN-US_TOPIC_0000001860318649__p14770144218374">You need to customize the export path. To compress data, select <strong id="EN-US_TOPIC_0000001860318649__b11018315207">.zip</strong> </p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p623194023315"><span><img id="EN-US_TOPIC_0000001860318649__image1252133012284" src="figure/en-us_image_0000001860319077.png" width="492.1" height="235.80900000000003" title="Click to enlarge" class="imgResize"></span></p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p1839310136117"></p>
|
|
<p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p559426">You must click <strong id="EN-US_TOPIC_0000001860318649__b1124510400236">I agree</strong> under <strong id="EN-US_TOPIC_0000001860318649__b3246184032317">Security Disclaimer</strong>, then click <strong id="EN-US_TOPIC_0000001860318649__b17246340102314">OK</strong>. You can disable the security disclaimer. After the disclaimer is disabled, it will not be displayed when you export the DDL. For details, see <a href="DWS_DS_005.html#EN-US_TOPIC_0000001813438860__table1510418570339">Table 1</a>.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_li25693751192755"><span>Click <strong id="EN-US_TOPIC_0000001860318649__b1439844915239">OK</strong>. The operation progress is displayed on the status bar in the lower right corner. </span><p><div class="note" id="EN-US_TOPIC_0000001860318649__note8691164422914"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001860318649__ul14692344132914"><li id="EN-US_TOPIC_0000001860318649__li26921344102917">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_0000001860318649__li1692124418298">MS Visual C runtime file (msvcrt100.dll) is required to complete this operation. For details, see <a href="DWS_DS_039.html#EN-US_TOPIC_0000001813439016__en-us_topic_0185264982_li1161793674918">Troubleshooting</a>.</li></ul>
|
|
</div></div>
|
|
<p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p40980350192916">The <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_b33278836192916">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_0000001860318649__en-us_topic_0185264706_table20789124652911" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Supported DDL encoding formats</caption><thead align="left"><tr id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_row485915510434"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.14.3.2.2.3.2.4.1.1"><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p18658615191019"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_b196581215101019">Database Encoding</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.14.3.2.2.3.2.4.1.2"><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p13658131510105"><strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_b8658111518105">File Encoding</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.14.3.2.2.3.2.4.1.3"><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p1765821511101"><strong id="EN-US_TOPIC_0000001860318649__b1208141422415">Support for Exporting a DDL</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_row1465193611592"><td class="cellrowborder" rowspan="3" valign="top" width="33.33333333333333%" headers="mcps1.3.14.3.2.2.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p11711124110594">UTF-8</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.14.3.2.2.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p6562114412591">UTF-8</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.14.3.2.2.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p946516361597">Yes</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_row6450163418591"><td class="cellrowborder" valign="top" headers="mcps1.3.14.3.2.2.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p15452183425919">GBK</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.14.3.2.2.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p94521734115915">Yes</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_row12402232195917"><td class="cellrowborder" valign="top" headers="mcps1.3.14.3.2.2.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p19402632145916">LATIN1</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.14.3.2.2.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p840219321599">Yes</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_row108601655164315"><td class="cellrowborder" rowspan="3" valign="top" width="33.33333333333333%" headers="mcps1.3.14.3.2.2.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p1786055514318">GBK</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.14.3.2.2.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p1786035594320">GBK</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.14.3.2.2.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p286045515433">Yes</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_row166304144010"><td class="cellrowborder" valign="top" headers="mcps1.3.14.3.2.2.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p56301514407">UTF-8</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.14.3.2.2.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p126309145015">Yes</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_row205945171408"><td class="cellrowborder" valign="top" headers="mcps1.3.14.3.2.2.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p9594317608">LATIN1</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.14.3.2.2.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p5594117608">No</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_row1125843617458"><td class="cellrowborder" rowspan="3" valign="top" width="33.33333333333333%" headers="mcps1.3.14.3.2.2.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p11259163610455">LATIN1</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.14.3.2.2.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p172591836204513">LATIN1</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.14.3.2.2.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p12591636124510">Yes</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_row1637216452013"><td class="cellrowborder" valign="top" headers="mcps1.3.14.3.2.2.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p5372545915">GBK</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.14.3.2.2.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p13721745310">No</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_row678318471115"><td class="cellrowborder" valign="top" headers="mcps1.3.14.3.2.2.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p1278394715113">UTF-8</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.14.3.2.2.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264706_p1578310471818">Yes</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="note" id="EN-US_TOPIC_0000001860318649__note8524153710309"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001860318649__p65241437193010">You can select multiple objects from regular and partitioned tables to export DDL and data, including columns, rows, indexes, constraints, and partitions.</p>
|
|
</div></div>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001860318649__section928494272211"><h4 class="sectiontitle">Renaming a table</h4><p id="EN-US_TOPIC_0000001860318649__p13610195222418">Right-click the selected table and select <strong id="EN-US_TOPIC_0000001860318649__b10561202692518">Rename Table</strong>. The <strong id="EN-US_TOPIC_0000001860318649__b9458445102519">Rename Table</strong> dialog box is displayed prompting you to provide the new name.</p>
|
|
<div class="p" id="EN-US_TOPIC_0000001860318649__p674114547247">Enter the table name and click <strong id="EN-US_TOPIC_0000001860318649__b20914171013263">OK</strong>. You can view the updated table name in <strong id="EN-US_TOPIC_0000001860318649__b1929753682613">Object Browser</strong>.<div class="note" id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264069_note11209104718377"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264069_p82099475374">This operation is not supported for partitioned ORC tables.</p>
|
|
</div></div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001860318649__section2644104211204"><h4 class="sectiontitle">Dropping a Table</h4><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264929_p349015397553">Right-click the selected table and select <strong id="EN-US_TOPIC_0000001860318649__b37591725173616">Drop Table</strong>. Press <strong id="EN-US_TOPIC_0000001860318649__b44012063810">Ctrl+left-click</strong> (select objects one by one) or <strong id="EN-US_TOPIC_0000001860318649__b54849142513">Shift+left-click</strong> (select objects in batches) to select the objects to be dropped.</p>
|
|
<p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264929_p62834605">This operation removes the complete table structure (including the table definition and index information) from the database and you have to re-create this table once again to store data.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001860318649__section19339420182"><h4 class="sectiontitle">Viewing Table Properties</h4><p id="EN-US_TOPIC_0000001860318649__p49451018191811">Right-click the selected table and select <strong id="EN-US_TOPIC_0000001860318649__b189471594566">Properties</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264639_p1967335918132">Data Studio displays the properties (<strong id="EN-US_TOPIC_0000001860318649__b12148217135712">General</strong>, <strong id="EN-US_TOPIC_0000001860318649__b162986211571">Columns</strong>, <strong id="EN-US_TOPIC_0000001860318649__b1027552645719">Constraints</strong>, and <strong id="EN-US_TOPIC_0000001860318649__b19364122912579">Index</strong>) of the selected table in different tabs. The following table lists the operations that can be performed on each tab along with data editing and refreshing operation. Edit operation is performed by double-clicking the cell.</p>
|
|
<div class="notice" id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264639_note172711839145111"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264639_p1927183914512">When viewing table data, Data Studio automatically adjusts the column widths for table view. You can resize the columns as needed. If the text content of a cell exceeds the total available display area, then resizing the cell column may cause Data Studio to become unresponsive.</p>
|
|
</div></div>
|
|
<div class="note" id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264639_note108435153143"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264639_ul1680652151416"><li class="text" id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264639_li188061221111410">Individual property window is displayed for each table.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264639_li13806122191418">If the property of a table is modified for a table that is already opened, refresh and open the properties of the table again to view the updated information on the same opened window.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264639_li997928581">If the content of the column has spaces between the words, then word wrapping is applied to fit the column within the display area. Word wrapping is not applied if the content does not have any spaces between the words.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264639_li14398124019460">The size of the column is determined by the maximum content length column.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264639_li91271941105311">Any change made to the table properties from <strong id="EN-US_TOPIC_0000001860318649__b169229511657">Object Browser</strong> will be reflected after refreshing the <strong id="EN-US_TOPIC_0000001860318649__b15645103219">Properties</strong> tab.</li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264639_li947766142816">Pasting operation is not allowed in the <strong id="EN-US_TOPIC_0000001860318649__b14644588514">Data Type</strong> column.</li></ul>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001860318649__section184917108171"><h4 class="sectiontitle">Grant/Revoke Privilege</h4><ol id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264868_ol54022224212"><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264868_li222516181158"><span>Right-click the selected regular/partitioned table and select <strong id="EN-US_TOPIC_0000001860318649__b112801112031">Grant/Revoke</strong>.</span><p><p id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264868_p72251118141518">The <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264868_b18173416231">Grant/Revoke</strong> dialog box is displayed.</p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p55241512191816"><span><img id="EN-US_TOPIC_0000001860318649__image15422131313186" src="figure/en-us_image_0000001860199241.png"></span></p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p14413322193913"></p>
|
|
</p></li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264868_li1851919178165"><span>Select the objects to grant/revoke privilege from the <strong id="EN-US_TOPIC_0000001860318649__b30865086581048">Object Selection</strong> tab and click <strong id="EN-US_TOPIC_0000001860318649__b14519584281048">Next</strong>.</span><p><p id="EN-US_TOPIC_0000001860318649__p876819395185"><span><img id="EN-US_TOPIC_0000001860318649__image1691193651814" src="figure/en-us_image_0000001860199225.png" width="492.1" height="341.7169" title="Click to enlarge" class="imgResize"></span></p>
|
|
<p id="EN-US_TOPIC_0000001860318649__p14595498322"></p>
|
|
</p></li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264868_li1285194971613"><span>Select the <strong id="EN-US_TOPIC_0000001860318649__b18153953418">role</strong> from the Role drop-down list in the <strong id="EN-US_TOPIC_0000001860318649__b141534510413">Privilege Selection</strong> tab. Select <strong id="EN-US_TOPIC_0000001860318649__b18153153418">Grant/Revoke</strong> in the <strong id="EN-US_TOPIC_0000001860318649__b111547516418">Privilege Selection</strong> tab.</span></li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264868_li1366271912272"><span>On the <strong id="EN-US_TOPIC_0000001860318649__b11547348">SQL Preview</strong> tab, you can check the automatically generated SQL query.</span></li><li id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264868_li88071635142816"><span>Click <strong id="EN-US_TOPIC_0000001860318649__en-us_topic_0185264868_b1593019154241">Finish</strong>.</span></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="DWS_DS_016.html">Table Management</a></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script language="JavaScript">
|
|
<!--
|
|
image_size('.imgResize');
|
|
var msg_imageMax = "view original image";
|
|
var msg_imageClose = "close";
|
|
//--></script> |