doc-exports/docs/dws/dev/dws_04_0874.html
Lu, Huayi a24ca60074 DWS DEVELOPER 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>
2023-01-19 13:37:49 +00:00

108 lines
9.0 KiB
HTML

<a name="EN-US_TOPIC_0000001099134896"></a><a name="EN-US_TOPIC_0000001099134896"></a>
<h1 class="topictitle1">USER_TAB_COLUMNS</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001099134896__en-us_topic_0059777721_p162734471387"><strong id="EN-US_TOPIC_0000001099134896__b03811315202918">USER_TAB_COLUMNS</strong> displays information about table columns accessible to the current user.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001099134896__t0f1566263f2a416d982e18479f799ed9" frame="border" border="1" rules="all"><caption><b>Table 1 </b>USER_TAB_COLUMNS columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001099134896__r147fe4ef9aa7456cb7833bf579bc150d"><th align="left" class="cellrowborder" valign="top" width="25.77%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001099134896__ab0e565c85a9343c59184e5c8e8eb9c09"><strong id="EN-US_TOPIC_0000001099134896__b84235270691445">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="34.52%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001099134896__ab73cfbbe99bd4d949c129d41ad54e316">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="39.71%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001099134896__ae7cdbe271f304529957bf22912290062">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001099134896__rd8ff0d418526489cb6633b26e112d1f1"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134896__a02d45757b0d14e25937cdc998a2b83e3">owner</p>
</td>
<td class="cellrowborder" valign="top" width="34.52%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134896__a89a07189c4d54a669f49738676523a36">character varying(64)</p>
</td>
<td class="cellrowborder" valign="top" width="39.71%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134896__a42fe568c5cd345d09ed041eb60fa7d2f">Table owner</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001099134896__r5ddded1640d14c8e8bef061e10a08ab1"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134896__af35a1b1ad82c49d886cee7b3d4250cc7">table_name</p>
</td>
<td class="cellrowborder" valign="top" width="34.52%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134896__ae794c87fb74a429f90cb0706124351bc">character varying(64)</p>
</td>
<td class="cellrowborder" valign="top" width="39.71%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134896__a6f232d09ace14f86b2dda19ea6fe0bb7">Table name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001099134896__rbd49e25a183847ab9d7f795e68474103"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134896__a01cd908de2bc47769a3da0415624fb58">column_name</p>
</td>
<td class="cellrowborder" valign="top" width="34.52%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134896__a5f6599a3580448619ce675603eb5d5e5">character varying(64)</p>
</td>
<td class="cellrowborder" valign="top" width="39.71%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134896__a2dee4f74133949bcb89287d8a22c45e7">Column name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001099134896__r1b7addb63ff548789e5b7e3c54c3df55"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134896__ab091b36805704b77b505ff0522fb204d">data_type</p>
</td>
<td class="cellrowborder" valign="top" width="34.52%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134896__a7df198fc3ee24445b3a913652aa6a403">character varying(128)</p>
</td>
<td class="cellrowborder" valign="top" width="39.71%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134896__af9b076c9966b4aae8af73daffb320504">Data type of the column</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001099134896__rfa75fadb324246da856856b32602b52c"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134896__a6fe105770b054faf946edf3073a0d6fe">column_id</p>
</td>
<td class="cellrowborder" valign="top" width="34.52%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134896__ad1fd8904d4c74caa874d818120206543">integer</p>
</td>
<td class="cellrowborder" valign="top" width="39.71%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134896__ad270452641a8459ea412a7db739bd45d">Sequence number of the column when the table is created</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001099134896__rf48e6360bc5f44a989be3f5ea1e2d04a"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134896__a2acf06aab0884fa3a1370fcd8ed89449">data_length</p>
</td>
<td class="cellrowborder" valign="top" width="34.52%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134896__afe39c94945e342209e2b5ced17d19868">integer</p>
</td>
<td class="cellrowborder" valign="top" width="39.71%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134896__aab35883e239f47d4901c6b9ae8616538">Length of the column in the unit of bytes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001099134896__r0a64243adf09407f99549e799ed53bcd"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134896__a6e3871a6c7244ee69b38d409e9053ce9">comments</p>
</td>
<td class="cellrowborder" valign="top" width="34.52%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134896__a45a757d45b7d4577af1be4fc98c0929c">text</p>
</td>
<td class="cellrowborder" valign="top" width="39.71%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134896__a5e8097c8db5e4eaabdf369112ae433c3">Comments</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001099134896__row2663202317236"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134896__p8663122312232">avg_col_len</p>
</td>
<td class="cellrowborder" valign="top" width="34.52%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134896__p11663172318232">numeric</p>
</td>
<td class="cellrowborder" valign="top" width="39.71%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134896__p1466332318234">Average length of a column in the unit of bytes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001099134896__row2099883182316"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134896__p699853115233">nullable</p>
</td>
<td class="cellrowborder" valign="top" width="34.52%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134896__p4998331132316">bpchar</p>
</td>
<td class="cellrowborder" valign="top" width="39.71%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134896__p899893116238">Whether the column can be empty. For the primary key constraint and non-null constraint, the value is <strong id="EN-US_TOPIC_0000001099134896__b1044435315411">n</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001099134896__row16418936152313"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134896__p174181336182312">data_precision</p>
</td>
<td class="cellrowborder" valign="top" width="34.52%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134896__p041843610232">integer</p>
</td>
<td class="cellrowborder" valign="top" width="39.71%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134896__p1141812362235">Precision of the data type. This parameter is valid for the numeric data type and <strong id="EN-US_TOPIC_0000001099134896__b1028314351966">NULL</strong> for other types.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001099134896__row880612407231"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134896__p980664082312">data_scale</p>
</td>
<td class="cellrowborder" valign="top" width="34.52%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134896__p11806164017232">integer</p>
</td>
<td class="cellrowborder" valign="top" width="39.71%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134896__p180610408239">Number of decimal places. This parameter is valid for the numeric data type and <strong id="EN-US_TOPIC_0000001099134896__b12129195814618">0</strong> for other types.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001099134896__row13882344102313"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134896__p148821344192310">char_length</p>
</td>
<td class="cellrowborder" valign="top" width="34.52%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134896__p5882244142318">numeric</p>
</td>
<td class="cellrowborder" valign="top" width="39.71%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134896__p19882164417239">Column length in the unit of bytes which is valid only for the varchar, nvarchar2, bpchar, and char types.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0639.html">System Views</a></div>
</div>
</div>