forked from docs/doc-exports
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>
81 lines
29 KiB
HTML
81 lines
29 KiB
HTML
<a name="EN-US_TOPIC_0000001233800701"></a><a name="EN-US_TOPIC_0000001233800701"></a>
|
|
|
|
|
|
<h1 class="topictitle1">Editing Table Data</h1>
|
|
|
|
<div id="body1584526252528"><p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p37545162">Follow the steps below to edit table data:</p>
|
|
<ol id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_ol2362138"><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li53633175"><span>Right-click the selected table and select <strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b87407368222">Edit Table Data</strong>.</span><p><p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p35493489">The <strong id="EN-US_TOPIC_0000001233800701__b1883668959113125">Edit Table</strong> data tab is displayed.</p>
|
|
<p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p8160103210253">Refer to <a href="DWS_DS_101.html">Viewing Table Data</a> for description on copy and search toolbar options.</p>
|
|
</p></li></ol>
|
|
<p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p21259248">Data Studio validates only the following data types entered into cells:</p>
|
|
<p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p283812161648">Bigint, bit, boolean, char, date, decimal, double, float, integer, numeric, real, smallint, time, time with time zone, time stamp, time stamp with time zone, tinyint, and varchar. Editing of array type data type is not supported.</p>
|
|
<p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p44277527">Any related errors during this operation reported by database will be displayed in Data Studio. Time with time zone and timestamp with time zone columns are non-editable columns.</p>
|
|
<p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p62953426">You can perform the following operations in the <strong id="EN-US_TOPIC_0000001233800701__b118457181113125">Edit Table Data</strong> tab:</p>
|
|
<ul id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_ul29709926"><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li18441142715472"><a href="#EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_section5333590620118">Insert</a></li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li27116106505"><a href="#EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_section2976164920345">Delete</a></li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li98071115155011"><a href="#EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_updateacell">Update</a></li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li510771911384"><a href="#EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_section2471220104119">Copy</a></li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li162286494497"><a href="#EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_section3927320420">Paste</a></li></ul>
|
|
<div class="section" id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_section5333590620118"><a name="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_section5333590620118"></a><a name="en-us_topic_0185264734_section5333590620118"></a><h4 class="sectiontitle">Insert</h4><p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p87812386478">Follow the steps to insert a row:</p>
|
|
<ol id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_ol1666018374177"><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li13657937181710"><span>Click <span><img id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_image99022815274" src="figure/en-us_image_0000001234042271.png"></span> to insert a row.</span></li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li186571937161718"><span>Double-click the cell to modify and enter the required details in the row.</span></li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li1367115269611"><span>Click <span><img id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_image20673112619618" src="figure/en-us_image_0000001234042273.png"></span> to save changes.</span><p><p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p156734261564">The <strong id="EN-US_TOPIC_0000001233800701__b1315951611113125">Edit Table Data</strong> tab status bar shows the <strong id="EN-US_TOPIC_0000001233800701__b898055699113125">Query Submit Time</strong>, <strong id="EN-US_TOPIC_0000001233800701__b1648255927113125">Number of Rows Fetched</strong>,<strong id="EN-US_TOPIC_0000001233800701__b257601826113125"> Execution Time</strong> and <strong id="EN-US_TOPIC_0000001233800701__b1067080505113125">Status</strong> of the operation.</p>
|
|
<div class="notice" id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_note889673116717"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p148965311074">Data Studio updates rows identified by the unique key. If a unique key is not identified for a table and there are identical rows, then an update operation made on one of the rows will affect all identical rows. Refresh the <strong id="EN-US_TOPIC_0000001233800701__b258870459113125">Edit Table Data</strong> tab to view the updated rows.</p>
|
|
</div></div>
|
|
<div class="note" id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_note1789973116710"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_ul890116312720"><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li18913731477">Changes to cells in a row that are not saved are highlighted in green. Once saved the color resets to default color.</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li189151931779">Unsaved records are highlighted in red. The number of successful and failed records are displayed in the status bar of the <a href="DWS_DS_102.html">Edit Table Data</a> tab.</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li49213311174">Clicking <strong id="EN-US_TOPIC_0000001233800701__b1369432610113125">Save</strong> either saves all the valid changes or does not save anything if there are invalid changes. Refer to <a href="DWS_DS_102.html">Editing Table Data</a> to set the behavior of save operation.</li></ul>
|
|
</div></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li11464944772"><span>Click <span><img id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_image24672441275" src="figure/en-us_image_0000001234042269.png"></span> to roll back the changes that are not saved.</span></li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li1365107284"><span>Set the preference to define:</span><p><ul id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_ul536714712818"><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li4369372820">Number of records to be fetched</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li163705713819">Column width</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li537314719813">Copy option from result set<p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p133768717814"><a name="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li537314719813"></a><a name="en-us_topic_0185264734_li537314719813"></a>For details, see <a href="DWS_DS_141.html#EN-US_TOPIC_0000001188202558__en-us_topic_0185264923_section28611419201210">Query Results</a>.</p>
|
|
</li></ul>
|
|
</p></li></ol>
|
|
<p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p23044555">Data Studio allows you to edit the distribution key column only for a new row.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_section2976164920345"><a name="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_section2976164920345"></a><a name="en-us_topic_0185264734_section2976164920345"></a><h4 class="sectiontitle">Delete</h4><p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p6771154316497">Follow the steps to delete a row:</p>
|
|
<ol id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_ol54669653"><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li0364934164012"><span>Click the row header of the row to be deleted.</span></li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li8925963"><span>Click <span><img id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_image143391254963" src="figure/en-us_image_0000001188362688.png"></span> to delete a row.</span></li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li64576574"><span>Click <span><img id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_image48931846104211" src="figure/en-us_image_0000001234042277.png"></span> to save changes. The <strong id="EN-US_TOPIC_0000001233800701__b1903647146113125">Define Unique Key</strong> dialog box is displayed.</span></li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li12937172711112"><span>Click the required option:</span><p><ul id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_ul14939927171114"><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li20940172718111"><strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b42561029153915">Use All Columns</strong><p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p39461427151112">Click <strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b7384161420404">Use All Columns</strong> to define all columns as unique key.</p>
|
|
</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li1695018272117"><strong id="EN-US_TOPIC_0000001233800701__b1442018860113125">Custom Unique Key</strong><ol type="a" id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_ol59566279119"><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li1649211694218">Click <strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b137815191404">Custom Unique Key</strong> to define selected columns as unique key.</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li995872718119">The <strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b1679192319402">Define Unique Key</strong> dialogue box is displayed.</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li139661227151116">Select the required columns and click <strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b154841337402">OK</strong>.</li></ol>
|
|
</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li1097182715113">Cancel<p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p69783272112"><a name="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li1097182715113"></a><a name="en-us_topic_0185264734_li1097182715113"></a>Click <strong id="EN-US_TOPIC_0000001233800701__b605397361113125">Cancel</strong> to modify the information in <strong id="EN-US_TOPIC_0000001233800701__b216425944113125">Edit Table Data</strong> tab.</p>
|
|
<p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p198372781119">The <strong id="EN-US_TOPIC_0000001233800701__b781306526113125">Edit Table Data</strong> tab status bar shows the <strong id="EN-US_TOPIC_0000001233800701__b1168698361113125">Query Submit Time</strong>, <strong id="EN-US_TOPIC_0000001233800701__b1514730807113125">Number of Rows Fetched</strong>, <strong id="EN-US_TOPIC_0000001233800701__b1147642301113125">Execution Time</strong> and <strong id="EN-US_TOPIC_0000001233800701__b1686259349113125">Status</strong> of the operation.</p>
|
|
<p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p99871027111117">Select <strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b88765716405">Remember the selection for this window</strong> option to hide the unique definition window from displaying while continuing with the edit table data operation. Click <span><img id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_image1399118276111" src="figure/en-us_image_0000001188521240.png"></span> from Edit Table Data toolbar to clear previously selected unique key definition and display unique definition wind</p>
|
|
</li></ul>
|
|
<div class="note" id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_note9992202710114"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_ul6994182716115"><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li20999142721117">Changes to cells in a row that are not saved are highlighted in green. Once saved the color resets to default color.</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li6152814115">Unsaved records are highlighted in red. The number of successful and failed records are displayed in the status bar of the <a href="DWS_DS_102.html">Edit Table Data</a> tab.</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li07192811114">Clicking <strong id="EN-US_TOPIC_0000001233800701__b1504805552113125">Save</strong> either saves all the valid changes or does not save anything if there are invalid changes. For details, see <a href="DWS_DS_102.html">Editing Table Data</a>.</li></ul>
|
|
</div></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li5862165219113"><span>Click <span><img id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_image1586215524116" src="figure/en-us_image_0000001233922323.png"></span> to roll back the changes that are not saved.</span></li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li63319983"><span>Refresh the table data to view deleted duplicate rows.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_updateacell"><a name="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_updateacell"></a><a name="en-us_topic_0185264734_updateacell"></a><h4 class="sectiontitle">Update</h4><p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p38546056">Follow the steps to update cell data:</p>
|
|
<ol id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_ol11370190"><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li35222847"><span>Double-click the cell to update the contents of the cell.</span></li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li34478387"><span>Click <span><img id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_image94721526134420" src="figure/en-us_image_0000001234200763.png"></span> to save changes.</span><p><p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p20798144334419">The <strong id="EN-US_TOPIC_0000001233800701__b528578013113125">Define Unique Key</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li132186373235"><span>Click the required option:</span><p><ul id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_ul10222193742319"><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li4224337162316"><strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b1836991015419">Use All Columns</strong><p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p522793762312">Click <strong id="EN-US_TOPIC_0000001233800701__b486174537113125">Use All Columns</strong> to define all columns as unique key.</p>
|
|
</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li19241937172310"><strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b1699153554112">Custom Unique Key</strong><ol type="a" id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_ol724703762314"><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li132477372237">Click <strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b20167650114110">Custom Unique Key</strong> to define selected columns as unique key.</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li10251153719239">The <strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b73417531418">Define Unique Key</strong> dialogue box is displayed.</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li1125583714234">Select the required columns and click <strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b62311756144113">OK</strong>.</li></ol>
|
|
</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li32601537152313"><strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b15618958204114">Cancel</strong><p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p192683376235">Click <strong id="EN-US_TOPIC_0000001233800701__b736706359113125">Cancel</strong> to modify the information in <strong id="EN-US_TOPIC_0000001233800701__b1470055007113125">Edit Table Data</strong> tab.</p>
|
|
<p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p10272153752312">The status bar shows the <strong id="EN-US_TOPIC_0000001233800701__b1953886312113125">Execution Time</strong> and <strong id="EN-US_TOPIC_0000001233800701__b1419770599113125">Status</strong> of the operation.</p>
|
|
<div class="p" id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p4272137192314">Select <strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b1283100424">Remember the selection for this window</strong> option to hide the unique definition window from displaying while continuing with the edit table data operation. Click <span><img id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_image102791437132310" src="figure/en-us_image_0000001233922321.png"></span> from Edit Table Data toolbar to clear previously selected unique key definition and display unique definition wind<div class="note" id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_note14281133742311"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_ul12282143711233"><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li1528710374232">Changes to cells in a row that are not saved are highlighted in green. Once saved the color resets to default color.</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li1428911374237">Unsaved records are highlighted in red. The number of successful and failed records are displayed in the status bar of the <strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b4612219437">Edit Table Data</strong> tab.</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li929553710233">Clicking <strong id="EN-US_TOPIC_0000001233800701__b958946162113125">Save</strong> either saves all the valid changes or does not save anything if there are invalid changes. For details, see <a href="DWS_DS_102.html">Editing Table Data</a>.</li></ul>
|
|
</div></div>
|
|
</div>
|
|
</li></ul>
|
|
</p></li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li228413782316"><span>Click <span><img id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_image152861373239" src="figure/en-us_image_0000001188202726.png"></span> to roll back the changes that are not saved.</span></li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li1756062816247"><span>Refresh the table data to view deleted duplicate rows.</span></li></ol>
|
|
<p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p32696434">During the edit operation, Data Studio does not allow you to edit the distribution key column as it is used by the DB to locate data in the database cluster.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_section2471220104119"><a name="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_section2471220104119"></a><a name="en-us_topic_0185264734_section2471220104119"></a><h4 class="sectiontitle">Copy</h4><p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p1612444120567">You can copy data from the <strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b149471048185916">Edit Table Data</strong> tab.</p>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p1160719497415">Follow the steps to copy data:</p>
|
|
<ol id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_ol13607249144117"><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li126071049114117"><span>Select the cell(s) and click <span><img id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_image3659183594313" src="figure/en-us_image_0000001234200767.png"></span> (Copy) or <span><img id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_image1025626165319" src="figure/en-us_image_0000001188521242.jpg"></span> (Advanced Copy).</span><p><p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li1468691454011p0">For more information about the differences between <strong id="EN-US_TOPIC_0000001233800701__b1487046059113125">Copy</strong> and <strong id="EN-US_TOPIC_0000001233800701__b1489703585113125">Advanced Copy</strong>, see <a href="DWS_DS_128.html#EN-US_TOPIC_0000001234200573__en-us_topic_0185264856_section16147111413113">Execute SQL Queries</a>.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_note10286134920417"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_ul68509546461"><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li18850175454617">Data can be copied to include the row number and/or column header. Refer to <a href="DWS_DS_141.html#EN-US_TOPIC_0000001188202558__en-us_topic_0185264923_section28611419201210">Query Results</a> to set this preference.</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li785075410461">Select part of cell content and press <strong id="EN-US_TOPIC_0000001233800701__b1064346189113125">Ctrl+C </strong>or click <span><img id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_image1213155414531" src="figure/en-us_image_0000001234042275.jpg"></span> to copy selected text from a cell.</li></ul>
|
|
</div></div>
|
|
</p></li></ol>
|
|
<div class="section" id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_section3927320420"><a name="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_section3927320420"></a><a name="en-us_topic_0185264734_section3927320420"></a><h4 class="sectiontitle">Paste</h4><p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p31165525">You can copy data from a CSV file and paste it into cells in the <strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b82171621907">Edit Table Data</strong> tab to insert and update records. If you paste onto existing cell data, the data is overwritten with the new data from the CSV file. Follow the steps to paste data into a cell:</p>
|
|
<ol id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_ol41379576"><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li20700171213565"><span>Copy data from the CSV file.</span></li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li681017321613"><span>Select the cell(s) and click <span><img id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_image18811153218616" src="figure/en-us_image_0000001233800831.png"></span>.</span></li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li33831071"><span>Click <span><img id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_image1210291961010" src="figure/en-us_image_0000001188681160.png"></span> to save changes. The <strong id="EN-US_TOPIC_0000001233800701__b1149319796113125">Define Unique Key</strong> dialog box is displayed.</span></li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li17649121715"><span>Click the required option:</span><p><ul id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_ul57341118208"><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li472911152019"><strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b12401122112445">Use All Columns</strong><p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p6548181562010">Click <strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b1051319245447">Use All Columns</strong> to define all columns as unique key.</p>
|
|
</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li17317116204"><strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b172772713448">Custom Unique Key</strong><ol type="a" id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_ol8205192012519"><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li02053206513">Click <strong id="EN-US_TOPIC_0000001233800701__b1813461141113125">Custom Unique Key</strong> to define selected columns as unique key.</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li2854171219471">The <strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b15715173217447">Define Unique Key</strong> dialogue box is displayed.</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li112052020115111">Select the required columns and click <strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b17347133714440">OK</strong>.</li></ol>
|
|
</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li173211840202012"><strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b3515114012449">Cancel</strong><p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p1815921414273">Click <strong id="EN-US_TOPIC_0000001233800701__b2087591577113125">Cancel</strong> to modify the information in <strong id="EN-US_TOPIC_0000001233800701__b970321884113125">Edit Table Data</strong> tab.</p>
|
|
<p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p1516071472718">The status bar shows the <strong id="EN-US_TOPIC_0000001233800701__b1829990787113125">Execution Time</strong> and <strong id="EN-US_TOPIC_0000001233800701__b1109678561113125">Status</strong> of the operation.</p>
|
|
<p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p1716021417273">Select <strong id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_b855814481448">Remember the selection for this window</strong> option to hide the unique definition window from displaying while continuing with the edit table data operation. Click <span><img id="EN-US_TOPIC_0000001233800701__image1882982642113125" src="figure/en-us_image_0000001290392476.png"></span> from Edit Table Data toolbar to clear previously selected unique key definition and display unique definition wind</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_note6645186174811"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_ul574215115428"><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li18743171119427">The number of copied cells from CSV must match the number of cells selected in the <strong id="EN-US_TOPIC_0000001233800701__b1247805595113125">Edit Table Data</strong> tab to paste the data.</li></ul>
|
|
<ul id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_ul2429191354812"><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li262615854110">Click <span><img id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_image16628258104118" src="figure/en-us_image_0000001234200765.png"></span> to roll back the changes that are not saved.</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li7988141661319">Changes to cells in a row that are not saved are highlighted in green. Once saved the color resets to default color.</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li169901516201316">Unsaved records are highlighted in red. The number of successful and failed records are displayed in the status bar of the <strong id="EN-US_TOPIC_0000001233800701__b645457273113125">Edit Table Data</strong> tab.</li><li id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_li17439121317485">Clicking <strong id="EN-US_TOPIC_0000001233800701__b1330007608113125">Save</strong> either saves all the valid changes or does not save anything if there are invalid changes. For details, see <a href="DWS_DS_102.html">Editing Table Data</a>.</li></ul>
|
|
</div></div>
|
|
</li></ul>
|
|
</p></li></ol>
|
|
<p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p61412264">During the pasting operation, Data Studio does not allow you to edit the distribution key column as it is used by the DB to locate data in the database cluster.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_note13535132317357"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p194281633193517">Empty cells are shown as [NULL]. Empty cell in <strong id="EN-US_TOPIC_0000001233800701__b497680613113125">Edit Table Data</strong> tab can be searched using the <strong id="EN-US_TOPIC_0000001233800701__b950040272113125">Null Values</strong> search drop-down.</p>
|
|
</div></div>
|
|
<p id="EN-US_TOPIC_0000001233800701__en-us_topic_0185264734_p381121894417">Refer to <a href="DWS_DS_128.html#EN-US_TOPIC_0000001234200573__en-us_topic_0185264856_section16147111413113">Execute SQL Queries</a> for information on show/hide search bar, sort, column reorder, and encoding options..</p>
|
|
</div>
|
|
</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>
|
|
|