Files
doc-exports/docs/dws/tool/DWS_DS_73.html
luhuayi a5e3903f6b DWS TG 910.211 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: luhuayi <luhuayi@huawei.com>
Co-committed-by: luhuayi <luhuayi@huawei.com>
2025-04-23 13:53:01 +00:00

46 lines
7.9 KiB
HTML

<a name="EN-US_TOPIC_0000001860318529"></a><a name="EN-US_TOPIC_0000001860318529"></a>
<h1 class="topictitle1">Managing Columns</h1>
<div id="body1584526252525"><p id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_p5165">After creating a table, you can create a new column, rename a column, and modify attributes in the table.</p>
<div class="section" id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_section81966120380"><h4 class="sectiontitle">Creating a New Column</h4><ol id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_ol47217024"><li id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_li22300038"><span>Right-click <strong id="EN-US_TOPIC_0000001860318529__b21577452558">Columns</strong> and select <strong id="EN-US_TOPIC_0000001860318529__b16392174813568">Create column</strong>.</span><p><p id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_p51968642">The <strong id="EN-US_TOPIC_0000001860318529__b133573387582">Add New Column</strong> dialog box is displayed prompting you to add information about the new column. Enter the details and click <strong id="EN-US_TOPIC_0000001860318529__b838513410594">Add</strong>.</p>
<p id="EN-US_TOPIC_0000001860318529__p112438561073"><span><img id="EN-US_TOPIC_0000001860318529__image1612444575013" src="figure/en-us_image_0000001813599124.png" width="497.42" height="367.4923" title="Click to enlarge" class="imgResize"></span></p>
<p id="EN-US_TOPIC_0000001860318529__p14349141386"></p>
</p></li><li id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_li9359886"><span>You can view the added column in the corresponding table.</span><p><p id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_p45362212">Data Studio displays the status of the operation in the status bar.</p>
</p></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_section12198131211384"><h4 class="sectiontitle">Toggle Not Null</h4><p id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_p5357756">Follow the steps below to set or reset the <strong id="EN-US_TOPIC_0000001860318529__b35117423518">Not Null</strong> option:</p>
<ol id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_ol31325081"><li id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_li13490275"><span>Right-click the selected column and select <strong id="EN-US_TOPIC_0000001860318529__b595417456517">Toggle Not Null</strong>.</span><p><p id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_p60214201">Data Studio displays the <strong id="EN-US_TOPIC_0000001860318529__b16111191521016">Toggle Not-null Property</strong> dialog box.</p>
</p></li><li id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_li62600705"><span>Click <strong id="EN-US_TOPIC_0000001860318529__b5369195214109">OK</strong> to complete the operation successfully. Data Studio displays the status of the operation in the status bar.</span></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_section319911210384"><h4 class="sectiontitle">Setting the Default Value of a Column</h4><ol id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_ol31334966"><li id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_li13579242"><span>Right-click the selected column and select <strong id="EN-US_TOPIC_0000001860318529__b1257240141814">Set Column Default Value</strong>.</span><p><p id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_p39950397">A dialog box with the current default value (if it is set) is displayed, prompting you to provide the default value.</p>
<p id="EN-US_TOPIC_0000001860318529__p203322919518"><span><img id="EN-US_TOPIC_0000001860318529__image19998996511" src="figure/en-us_image_0000001860199193.png"></span></p>
<p id="EN-US_TOPIC_0000001860318529__p11766191395714"></p>
</p></li><li id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_li24009259"><span>Enter the value and click <strong id="EN-US_TOPIC_0000001860318529__b15779151417201">OK</strong>. Data Studio displays the status of the operation in the status bar.</span></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_section1200161218389"><h4 class="sectiontitle">Changing the Data Type</h4><ol id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_ol35694663"><li id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_li52816515"><span>Right-click the selected column and select <strong id="EN-US_TOPIC_0000001860318529__b13321823112118">Change Data Type</strong>.</span><p><p id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_p46095324"><strong id="EN-US_TOPIC_0000001860318529__b0207738102116">Change Data Type</strong> dialog box is displayed.</p>
<p id="EN-US_TOPIC_0000001860318529__p12874134517514"><span><img id="EN-US_TOPIC_0000001860318529__image9563446115119" src="figure/en-us_image_0000001860199197.png" width="497.42" height="161.3822" title="Click to enlarge" class="imgResize"></span></p>
<p id="EN-US_TOPIC_0000001860318529__p15637163616242"></p>
<div class="note" id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_note152061312163017"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_p52061912193017">The existing data type will be displayed as <strong id="EN-US_TOPIC_0000001860318529__b93461159145210">Unknown</strong> while you modify complex data types.</p>
</div></div>
</p></li><li id="EN-US_TOPIC_0000001860318529__en-us_topic_0185264853_li38880310"><span>Select the <strong id="EN-US_TOPIC_0000001860318529__b528511439227">Data type Schema</strong> and <strong id="EN-US_TOPIC_0000001860318529__b1741110491227">Data Type</strong>. If the <strong id="EN-US_TOPIC_0000001860318529__b198261436112320">Precision/Size</strong> spin box is enabled, enter the required details and click <strong id="EN-US_TOPIC_0000001860318529__b1943064352317">OK</strong>. Data Studio displays the status of the operation in the status bar.</span></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000001860318529__section362218528498"><h4 class="sectiontitle">Renaming a Column</h4><ol id="EN-US_TOPIC_0000001860318529__ol786718566494"><li id="EN-US_TOPIC_0000001860318529__li1986711563496"><span>Right-click the selected column and select <strong id="EN-US_TOPIC_0000001860318529__b1436163310244">Rename Column</strong>.</span><p><p id="EN-US_TOPIC_0000001860318529__p086714561493">The <strong id="EN-US_TOPIC_0000001860318529__b1882122922618">Rename Column</strong> dialog box is displayed prompting you to provide the new name.</p>
</p></li><li id="EN-US_TOPIC_0000001860318529__li2867185620496"><span>Enter the name and click <strong id="EN-US_TOPIC_0000001860318529__b5565556152610">OK</strong>. Data Studio displays the status of the operation in the status bar.</span></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000001860318529__section8401103154915"><h4 class="sectiontitle">Dropping a Column</h4><ol id="EN-US_TOPIC_0000001860318529__ol13363636134915"><li id="EN-US_TOPIC_0000001860318529__li5363103619496"><span>Right-click the selected column and select <strong id="EN-US_TOPIC_0000001860318529__b174683742811">Drop Column</strong>. This operation deletes the column from the table.</span><p><p id="EN-US_TOPIC_0000001860318529__p1836303614915">A <strong id="EN-US_TOPIC_0000001860318529__b52532575284">Drop Column</strong> dialog box is displayed.</p>
</p></li><li id="EN-US_TOPIC_0000001860318529__li136333617497"><span>Click <strong id="EN-US_TOPIC_0000001860318529__b72254110292">OK</strong> to complete the operation successfully. Data Studio displays the status of the operation in the status bar.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="DWS_DS_017.html">Creating a Regular Table</a></div>
</div>
</div>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>