doc-exports/docs/dws/tool/DWS_DS_102.html
Lu, Huayi 4194b50d78 DWS TOOL 811 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2022-12-14 20:46:26 +00:00

90 lines
31 KiB
HTML

<a name="EN-US_TOPIC_0000001098993150"></a><a name="EN-US_TOPIC_0000001098993150"></a>
<h1 class="topictitle1">Editing Table Data</h1>
<div id="body1584526252528"><p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p129463162148">Follow the steps below to edit table data:</p>
<ol id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_ol2362138"><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li53633175"><span>Right-click the selected table and select <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b8100719162210">Edit Table Data</strong>.</span><p><p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p13275990161624">The <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b132252563161">Edit Table data </strong>tab<strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b1226185611614"> </strong>is<strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b66953326162210"> </strong>displayed.</p>
<p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p85917402109">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_0000001098993150__en-us_topic_0185264734_p51993181141237">Data Studio validates only the following data types entered into cells:</p>
<p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p42572325132311">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.</p>
<p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p55161817194815">Editing of array type data type is not supported.</p>
<p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p5704660513255">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_0000001098993150__en-us_topic_0185264734_p41925631144119">You can perform the following operations in the <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b1030932171555">Edit Table Data</strong> tab:</p>
<ul id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_ul39341340153126"><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li18441142715472"><a href="#EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_section5333590620118">Insert</a></li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li27116106505"><a href="#EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_section2976164920345">Delete</a></li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li98071115155011"><a href="#EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_updateacell">Update</a></li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li510771911384"><a href="#EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_section2471220104119">Copy</a></li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li162286494497"><a href="#EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_section3927320420">Paste</a></li></ul>
<div class="section" id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_section5333590620118"><a name="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_section5333590620118"></a><a name="en-us_topic_0185264734_section5333590620118"></a><h4 class="sectiontitle">Insert</h4><p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p252243015299">Follow the steps to insert a row:</p>
</div>
<ol id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_ol1666018374177"><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li13657937181710"><span>Click <span><img id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_image10354333384" src="figure/en-us_image_0000001099153202.png"></span> to insert a row.</span></li><li id="EN-US_TOPIC_0000001098993150__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_0000001098993150__en-us_topic_0185264734_li1367115269611"><span>Click <span><img id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_image101731041103817" src="figure/en-us_image_0000001145513227.png"></span> to save changes.</span><p><p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p125855193812">The <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b17661855791">Edit Table Data </strong>tab status<strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b5913329547"> </strong>bar shows the <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b1588818371992">Query Submit Time</strong>,<strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b333312416914"> Number of rows fetched</strong>, <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b5156669195621">Execution time</strong> and <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b6298442495616">Status</strong> of the operation.</p>
<div class="notice" id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_note17268101617326"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p526961610321">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_0000001098993150__en-us_topic_0185264734_b2933135023416">Edit Table Data</strong> tab to view the updated rows.</p>
</div></div>
<div class="note" id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_note2523203012422"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_ul1483385610472"><li id="EN-US_TOPIC_0000001098993150__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_0000001098993150__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 <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b1513815284274">Edit Table Data</strong> tab.</li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li49213311174">Clicking <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b2877153212514">Save</strong> either saves all the valid changes or does not save anything if there are invalid changes. Refer to <a href="DWS_DS_141.html#EN-US_TOPIC_0000001145713115__en-us_topic_0185264923_section17814637103210">Edit Table Data</a> to set the behavior of save operation.</li></ul>
</div></div>
</p></li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li11464944772"><span>Click <span><img id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_image3923165818374" src="figure/en-us_image_0000001145513231.png"></span> to roll back the changes that are not saved.</span></li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li1365107284"><span>Set the preference to define:</span><p><ul id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_ul1649735132917"><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li4369372820">Number of records to be fetched</li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li163705713819">Column width</li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li537314719813">Copy option from result set<p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p257143532914"><a name="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li537314719813"></a><a name="en-us_topic_0185264734_li537314719813"></a>Refer to <a href="DWS_DS_141.html#EN-US_TOPIC_0000001145713115__en-us_topic_0185264923_section28611419201210">Query Results</a> for more information.</p>
</li></ul>
</p></li></ol>
<p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p1454096514187">Data Studio allows you to edit the distribution key column only for a new row.</p>
<div class="section" id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_section2976164920345"><a name="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_section2976164920345"></a><a name="en-us_topic_0185264734_section2976164920345"></a><h4 class="sectiontitle">Delete</h4><p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p23037963152923">Follow the steps to delete a row:</p>
</div>
<ol id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_ol54669653"><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li0364934164012"><span>Click the row header of the row to be deleted.</span></li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li8925963"><span>Click <span><img id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_image10667745144219" src="figure/en-us_image_0000001145833079.png"></span> to delete a row.</span></li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li64576574"><span>Click <span><img id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_image114696514387" src="figure/en-us_image_0000001098833228.png"></span> to save changes.</span><p><p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p1922017310814">Define unique key dialog box is displayed.</p>
</p></li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li12937172711112"><span>Click the required option:</span><p><ul id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_ul32212031486"><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li20940172718111"><strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b1922315311986">Use All Columns</strong><p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p191181154141511">Click <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b823093119812">Use All Columns</strong> to define all columns as unique key.</p>
</li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li1695018272117"><strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b142324315817">Custom Unique Key</strong><ol type="a" id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_ol59566279119"><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li1649211694218">Click <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b1923619311688">Custom Unique Key</strong> to define selected columns as unique key.</li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li995872718119"><strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b92394318812">Define Unique Key</strong> dialogue box is displayed.</li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li139661227151116">Select the required columns and click <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b102429317810">OK</strong>.</li></ol>
</li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li1097182715113"><strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b124417312812">Cancel</strong><p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p17200557201515">Click <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b11360327191311">Cancel</strong> to modify the information in <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b11362112717137">Edit Table Data</strong> tab.</p>
<p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p02045151435">The <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b188201115191013">Edit Table Data </strong>tab status<strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b10821141518102"> </strong>bar shows the <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b18221115101015">Query Submit Time</strong>,<strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b1182361501010"> Number of rows fetched</strong>, <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b198241315121013">Execution time</strong> and <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b58259157103">Status</strong> of the operation.</p>
<p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p8606194820910">Select <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b547411494916">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_0000001098993150__en-us_topic_0185264734_image1147415494918" src="figure/en-us_image_0000001098673402.png"></span> from <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b11475144917920">Edit Table Data</strong> toolbar to clear previously selected unique key definition and display unique definition window again.</p>
<div class="note" id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_note13751110113218"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_ul356816362918"><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li20999142721117">Deleted rows that are not saved are highlighted in red. Once saved the color resets to default color.</li><li id="EN-US_TOPIC_0000001098993150__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 <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b171011840132714">Edit Table Data</strong> tab.</li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li07192811114">Clicking <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b6430193318615">Save</strong> either saves all the valid changes or does not save anything if there are invalid changes. Refer to <a href="DWS_DS_141.html#EN-US_TOPIC_0000001145713115__en-us_topic_0185264923_section17814637103210">Edit Table Data</a> to set the behavior of save operation.</li></ul>
</div></div>
</li></ul>
</p></li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li5862165219113"><span>Click <span><img id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_image9758435173216" src="figure/en-us_image_0000001145833085.png"></span> to roll back the changes that are not saved.</span></li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li63319983"><span>Refresh the table data to view deleted duplicate rows.</span></li></ol>
<div class="section" id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_updateacell"><a name="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_updateacell"></a><a name="en-us_topic_0185264734_updateacell"></a><h4 class="sectiontitle">Update</h4><p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p64152367152945">Follow the steps to update cell data:</p>
</div>
<ol id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_ol11370190"><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li35222847"><span>Double-click the cell to update the contents of the cell.</span></li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li34478387"><span>Click <span><img id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_image1098455717385" src="figure/en-us_image_0000001098833228.png"></span> to save changes.</span><p><p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p1892372751014">Define unique key dialog box is displayed.</p>
</p></li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li132186373235"><span>Click the required option:</span><p><ul id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_ul492792711015"><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li4224337162316"><strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b119311727151019">Use All Columns</strong><p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p828881171620">Click <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b13934182713107">Use All Columns</strong> to define all columns as unique key.</p>
</li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li19241937172310"><strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b693892711102">Custom Unique Key</strong><ol type="a" id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_ol724703762314"><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li132477372237">Click <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b3942527101010">Custom Unique Key</strong> to define selected columns as unique key.</li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li10251153719239"><strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b10943327171012">Define Unique Key</strong> dialogue box is displayed.</li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li1125583714234">Select the required columns and click <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b99454277106">OK</strong>.</li></ol>
</li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li32601537152313"><strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b694762741012">Cancel</strong><p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p8739417162">Click <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b53811828141">Cancel</strong> to modify the information in <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b1138217241411">Edit Table Data</strong> tab.</p>
<p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p6662134519312">The status<strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b173480461632"> </strong>bar shows the <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b1349546336">Execution Time</strong> and <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b103524461837">Status</strong> of the operation.</p>
<p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p11561696102">Select <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b1358318117101">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_0000001098993150__en-us_topic_0185264734_image858491141018" src="figure/en-us_image_0000001098673402.png"></span> from <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b6585181111101">Edit Table Data</strong> toolbar to clear previously selected unique key definition and display unique definition window again.</p>
<div class="note" id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_note77011552333"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_ul49541727181019"><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li1528710374232">Changes to cells in a row that are not saved are highlighted in green. Once the record is saved, the color resets to the default color.</li><li id="EN-US_TOPIC_0000001098993150__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_0000001098993150__en-us_topic_0185264734_b19680134811277">Edit Table Data</strong> tab.</li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li929553710233">Clicking <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b176051346267">Save</strong> either saves all the valid changes or does not save anything if there are invalid changes. Refer to <a href="DWS_DS_141.html#EN-US_TOPIC_0000001145713115__en-us_topic_0185264923_section17814637103210">Edit Table Data</a> to set the behavior of save operation.</li></ul>
</div></div>
</li></ul>
</p></li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li228413782316"><span>Click <span><img id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_image41371524203410" src="figure/en-us_image_0000001145833085.png"></span> to roll back the changes that are not saved.</span></li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li1756062816247"><span>Refresh the table data to view deleted duplicate rows.</span></li></ol>
<p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p5758967414277">During 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 class="section" id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_section2471220104119"><a name="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_section2471220104119"></a><a name="en-us_topic_0185264734_section2471220104119"></a><h4 class="sectiontitle">Copy</h4><p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p9604752203813">You can copy data from the <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b15605185273812">Edit Table Data</strong> tab.</p>
<p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p17606185217383">Follow the steps to copy data:</p>
<ol id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_ol13607249144117"><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li126071049114117"><span>Select the cell(s) and click <span><img id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_image8582111854210" src="figure/en-us_image_0000001145913181.png"></span> (Copy) or <span><img id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_image15821281583" src="figure/en-us_image_0000001098673618.jpg"></span> (Advanced Copy).</span><p><p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p3680182412172">Refer to <a href="DWS_DS_128.html#EN-US_TOPIC_0000001145833051__en-us_topic_0185264856_section16147111413113">Executing SQL Queries</a> to understand the difference between copy and advanced copy.</p>
<div class="note" id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_note1292194612595"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_ul9343163165918"><li id="EN-US_TOPIC_0000001098993150__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_0000001145713115__en-us_topic_0185264923_section28611419201210">Query Results</a> to set this preference.</li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li785075410461">Select part of cell content and press <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b1912659105610">Ctrl+C </strong>or click <span><img id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_image3822247194615" src="figure/en-us_image_0000001145513451.jpg" width="19.950000000000003" height="16.880759" title="Click to enlarge" class="imgResize"></span> to copy selected text from a cell.</li></ul>
</div></div>
</p></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_section3927320420"><a name="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_section3927320420"></a><a name="en-us_topic_0185264734_section3927320420"></a><h4 class="sectiontitle">Paste</h4><p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p930684913576">You can copy data from a CSV file and paste it into cells in the <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b6028056613576">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.</p>
<p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p15663914153015">Follow the steps to paste data into a cell:</p>
<ol id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_ol41379576"><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li20700171213565"><span>Copy data from the CSV file.</span></li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li681017321613"><span>Select the cell(s) and click <span><img id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_image783302973610" src="figure/en-us_image_0000001145833077.png"></span>.</span></li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li33831071"><span>Click <span><img id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_image9463193113918" src="figure/en-us_image_0000001098833228.png"></span> to save changes.</span><p><p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p129070493711">The <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b149317346483">Define Unique Key</strong> dialogue box is displayed.</p>
</p></li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li17649121715"><span>Click the required option:</span><p><ul id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_ul189101447371"><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li472911152019"><strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b59131453714">Use All Columns</strong><p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p158117961611">Click <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b99187416372">Use All Columns</strong> to define all columns as the unique key.</p>
</li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li17317116204"><strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b79212411374">Custom Unique Key</strong><ol type="a" id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_ol8205192012519"><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li02053206513">Click <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b18924134193719">Custom Unique Key</strong> to define the selected columns as the unique key.</li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li2854171219471">The<strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b77301844481"> Define Unique Key</strong> dialogue box is displayed.</li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li112052020115111">Select the required columns and click <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b189281445373">OK</strong>.</li></ol>
</li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li173211840202012"><strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b1593014413717">Cancel</strong><p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p434551131617">Click <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b48007140147">Cancel</strong> to modify the information in the <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b14801101491414">Edit Table Data</strong> tab.</p>
<p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p1084318257612">The status<strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b4755203918612"> </strong>bar shows the <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b137581439963">Execution Time</strong> and <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b1759113913611">Status</strong> of the operation.</p>
<p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p114019179107">Select <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b9779217121013">Remember the selection for this window</strong> to hide the unique definition window from displaying while continuing with the edit table data operation. Click <span><img id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_image678013177103" src="figure/en-us_image_0000001098673402.png"></span> from the <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b778111175102">Edit Table Data</strong> toolbar to clear previously selected unique key definition and display the unique definition window again</p>
<div class="note" id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_note29356412373"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_ul14938194183716"><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li18743171119427">The number of copied cells from CSV must match the number of cells selected in the Edit Table Data tab to paste the data.</li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li262615854110">Use the <span><img id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_image1878741133715" src="figure/en-us_image_0000001098993228.png"></span> to roll back the changes that are not saved.</li><li id="EN-US_TOPIC_0000001098993150__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_0000001098993150__en-us_topic_0185264734_li169901516201316">Failed 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_0000001098993150__en-us_topic_0185264734_b1838875532711">Edit Table Data</strong> tab.</li><li id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_li17439121317485">Clicking <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b08571659060">Save</strong> either saves all the valid changes or does not save anything if there are invalid changes. Refer to <a href="DWS_DS_141.html#EN-US_TOPIC_0000001145713115__en-us_topic_0185264923_section17814637103210">Edit Table Data</a> to set the behavior of save operation.</li></ul>
</div></div>
</li></ul>
</p></li></ol>
<p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p55580726141934">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_0000001098993150__en-us_topic_0185264734_note1915541181619"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p819954419167">Empty cells are shown as [NULL]. Empty cell in <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b52001444141616">Edit Table Data</strong> tab can be searched using the <strong id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_b1220214471620">Null Values</strong> search drop-down.</p>
</div></div>
<p id="EN-US_TOPIC_0000001098993150__en-us_topic_0185264734_p639881812169">Refer to <a href="DWS_DS_128.html#EN-US_TOPIC_0000001145833051__en-us_topic_0185264856_section16147111413113">Executing 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>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>