Files
doc-exports/docs/dws/tool/dws_mt_0111.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

24 lines
2.6 KiB
HTML

<a name="EN-US_TOPIC_0000002076353957"></a><a name="EN-US_TOPIC_0000002076353957"></a>
<h1 class="topictitle1">Views</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000002076353957__en-us_topic_0000001706104897_en-us_topic_0238518386_en-us_topic_0237362306_en-us_topic_0202727345_p1561004915414">A view is a logical table based on one or more tables or views. A view itself contains no data.</p>
<p id="EN-US_TOPIC_0000002076353957__en-us_topic_0000001706104897_en-us_topic_0238518386_en-us_topic_0237362306_en-us_topic_0202727345_p194074111760">In the source file, if the table names are not qualified with the schema name, then the target file is modified such that the table is also qualified with the same schema name as that of the view.</p>
<p id="EN-US_TOPIC_0000002076353957__en-us_topic_0000001706104897_p1080464921520">The following is an example of the syntax before and after view migration.</p>
<div class="section" id="EN-US_TOPIC_0000002076353957__en-us_topic_0000001706104897_section2020461412399"><h4 class="sectiontitle">Table Name (Without Schema Name)</h4><div class="fignone" id="EN-US_TOPIC_0000002076353957__en-us_topic_0000001706104897_en-us_topic_0238518386_en-us_topic_0237362306_en-us_topic_0202727345_fig4825546195847"><span class="figcap"><b>Figure 1 </b>Input: tab1 and tab2</span><br><span><img id="EN-US_TOPIC_0000002076353957__en-us_topic_0000001706104897_en-us_topic_0238518386_en-us_topic_0237362306_en-us_topic_0202727345_image55324934195847" src="figure/en-us_image_0000001658025090.png" height="410.20637211367705" width="523.6875" title="Click to enlarge" class="imgResize"></span></div>
</div>
<div class="section" id="EN-US_TOPIC_0000002076353957__en-us_topic_0000001706104897_section382345111398"><h4 class="sectiontitle">Table Name (With Schema Name)</h4><div class="fignone" id="EN-US_TOPIC_0000002076353957__en-us_topic_0000001706104897_en-us_topic_0238518386_en-us_topic_0237362306_en-us_topic_0202727345_fig52134630195847"><span class="figcap"><b>Figure 2 </b>Output: view schema names</span><br><span><img id="EN-US_TOPIC_0000002076353957__en-us_topic_0000001706104897_en-us_topic_0238518386_en-us_topic_0237362306_en-us_topic_0202727345_image3328752" src="figure/en-us_image_0000001706224445.png" width="465.83250000000004" height="337.15500000000003" title="Click to enlarge" class="imgResize"></span></div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_mt_0106.html">Schema Objects</a></div>
</div>
</div>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>