forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
41 lines
2.7 KiB
HTML
41 lines
2.7 KiB
HTML
<a name="EN-US_TOPIC_0000001772536456"></a><a name="EN-US_TOPIC_0000001772536456"></a>
|
|
|
|
<h1 class="topictitle1">COMMENT</h1>
|
|
<div id="body8662426">
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001772536456__en-us_topic_0000001706105053_en-us_topic_0000001434750221_table584475133312" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001772536456__en-us_topic_0000001706105053_en-us_topic_0000001434750221_row1845125118331"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.1.3.1.1"><p id="EN-US_TOPIC_0000001772536456__en-us_topic_0000001706105053_en-us_topic_0000001434750221_p7845451203315"><strong id="EN-US_TOPIC_0000001772536456__en-us_topic_0000001706105053_en-us_topic_0000001434750221_b23464491414">Input</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.1.3.1.2"><p id="EN-US_TOPIC_0000001772536456__en-us_topic_0000001706105053_en-us_topic_0000001434750221_p3845751203317"><strong id="EN-US_TOPIC_0000001772536456__en-us_topic_0000001706105053_en-us_topic_0000001434750221_b113671049204113">Output</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001772536456__en-us_topic_0000001706105053_en-us_topic_0000001434750221_row1184555163312"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.1.3.1.1 "><pre class="screen" id="EN-US_TOPIC_0000001772536456__en-us_topic_0000001706105053_en-us_topic_0000001434750221_screen10124266396">CREATE MULTISET TABLE PDAT.t_tbl_comment
|
|
(
|
|
Data_Dt DATE NOT NULL
|
|
,Data_Src VARCHAR(4) NOT NULL
|
|
,List_Make_Stat CHAR(1)
|
|
) PRIMARY INDEX(Data_Dt,Data_Src) ;
|
|
COMMENT ON PDAT.t_tbl_comment IS 'comment test on table';
|
|
---------------
|
|
REPLACE VIEW PVW.v_vw_comment AS
|
|
LOCKING ROW FOR ACCESS
|
|
SELECT Data_Dt, Data_Src, List_Make_Stat
|
|
FROM PDAT.t_tbl_comment;
|
|
COMMENT ON PVW.v_vw_comment IS 'comment test on view';
|
|
COMMENT ON PVW.v_vw_comment.Data_Dt IS 'comment test on view column';</pre>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.1.3.1.2 "><pre class="screen" id="EN-US_TOPIC_0000001772536456__en-us_topic_0000001706105053_en-us_topic_0000001434750221_screen1198213133913">COMMENT ON TABLE PDAT.t_tbl_comment IS 'comment test on table';
|
|
COMMENT ON VIEW PVW.v_vw_comment IS 'comment test on view';
|
|
COMMENT ON COLUMN PVW.v_vw_comment.Data_Dt IS 'comment test on view column';</pre>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_16_0059.html">Schema Objects and Data Definition Language (DDL)</a></div>
|
|
</div>
|
|
</div>
|
|
|