forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Reviewed-by: Jiang, Beibei <beibei.jiang@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
397 lines
42 KiB
HTML
397 lines
42 KiB
HTML
<a name="EN-US_TOPIC_0000001188521090"></a><a name="EN-US_TOPIC_0000001188521090"></a>
|
|
|
|
|
|
<h1 class="topictitle1">Formatting of SQL Queries</h1>
|
|
|
|
<div id="body1584526252529"><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p49779472">Data Studio supports formatting and highlighting of SQL queries and PL/SQL statements.</p>
|
|
<div class="section" id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_section45362064"><a name="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_section45362064"></a><a name="en-us_topic_0185264768_section45362064"></a><h4 class="sectiontitle">PL/SQL Formatting</h4><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p41867666">Follow the steps to format PL/SQL statements:</p>
|
|
<ol id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_ol41264680"><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li35837800"><span>Select the PL/SQL statements to be formatted.</span></li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li20408526"><span>Click <span><img id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_image49459013" src="figure/en-us_image_0000001234200737.jpg"></span> on the toolbar to format the query.</span><p><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p51120171112351">Alternatively, use the key combination <strong id="EN-US_TOPIC_0000001188521090__b1954816575113032">Ctrl+Shift+F</strong> or choose <strong id="EN-US_TOPIC_0000001188521090__b418743440113032">Edit</strong> > <strong id="EN-US_TOPIC_0000001188521090__b1737007870113032">Format</strong> from the main menu.</p>
|
|
<p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p60833748112544">The PL/SQL statements are formatted.</p>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_section6454134719539"><h4 class="sectiontitle">SQL Formatting</h4><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p12997101712551">Data Studio supports formatting of simple SQL SELECT, INSERT, UPDATE, DELETE statements which are syntactically correct. The following are some of the statements for which formatting is supported:</p>
|
|
<ol id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_ol2210123152511"><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li14159429122618">The SELECT statement must be made of the following clauses:<ul id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_ul625023895611"><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li125018385561">Target list</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li2025003815566">FROM clause (including JOIN)</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li425019388560">Where</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li1825012381569">Group by</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li225043845612">Having</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li1025073811569">Order by</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li1825063855612">Common table expression</li></ul>
|
|
<p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1788415439305">SELECT statement without SET operations like UNION, UNION ALL, MINUS, INTERSECT and so on</p>
|
|
<p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p5671745113016">SELECT statements without sub-queries</p>
|
|
</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li1284122214263">The INSERT statement is made of the following clauses only:<ul id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_ul17122856162513"><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li32191921266">Insert Into Table name</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li1795715154266">Values</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li536172262611">Values Column List</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li15400029112620">RETURNING</li></ul>
|
|
</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li7755410201">The UPDATE statement is made of the following clauses only:<ul id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_ul3150121318274"><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li151379485300">Update Table name</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li1212203153111">SET</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li5322010183614">FROM clause (including JOIN)</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li33319911316">Where</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li663151563118">RETURNING</li></ul>
|
|
</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li13880134115200">The DELETE statement is made of the following clauses only:<ul id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_ul177965243343"><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li532233311341">Delete From Table name</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li16201641133416">USING clause (including JOIN)</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li16548174612345">Where</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li533815540346">RETURNING</li></ul>
|
|
</li></ol>
|
|
<p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p88267614020">Follow the steps below to format SQL queries:</p>
|
|
<ol id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_ol1331765716013"><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li321283114011"><span>Select the SQL query statements to be formatted.</span></li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li231913574010"><span>Click <span><img id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_image675112958" src="figure/en-us_image_0000001233800805.jpg"></span> on the toolbar to format the query.</span><p><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p99612355112">Alternatively, use the key combination <strong id="EN-US_TOPIC_0000001188521090__b1445696175113032">Ctrl+Shift+F</strong> or choose <strong id="EN-US_TOPIC_0000001188521090__b1543963174113032">Edit</strong> > <strong id="EN-US_TOPIC_0000001188521090__b896134880113032">Format</strong> from the main menu.</p>
|
|
<p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1619212211435">The query is formatted.</p>
|
|
<p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p10584508616">The following table describes the query formatting rules.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_table1183727337" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Query formatting rules</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row171839275313"><th align="left" class="cellrowborder" valign="top" width="11.05%" id="mcps1.3.3.5.2.2.4.2.4.1.1"><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p01324110400"><strong id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_b93405401403">Statement</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="29.84%" id="mcps1.3.3.5.2.2.4.2.4.1.2"><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p159411449181714"><strong id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_b4941124951712">Clause</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="59.11%" id="mcps1.3.3.5.2.2.4.2.4.1.3"><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p69417492175"><strong id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_b159411491173">Formatting Rule</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row2018614271039"><td class="cellrowborder" rowspan="29" valign="top" width="11.05%" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p633015245408">SELECT</p>
|
|
</td>
|
|
<td class="cellrowborder" rowspan="2" valign="top" width="29.84%" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1218611279311">SELECT list</p>
|
|
<p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p123691431542"></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.11%" headers="mcps1.3.3.5.2.2.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p696813429182">Line break before first column</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row836873119414"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p197355913193">Indent column list</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row1937210423413"><td class="cellrowborder" rowspan="4" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p437264215413">FROM</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p173727421649">Line break before FROM</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row1838815103515"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p83888108515">Line break after FROM</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row33301823154"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p2330823752">Indent FROM list</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row177198301453"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p87197301519">Stack FROM list</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row1027912391951"><td class="cellrowborder" rowspan="6" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p32791391051">Line break before JOIN</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p11279143919514">Line break after JOIN</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row86781791769"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p967920914613">Line break after JOIN</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row164081101568"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p140891012617">Line break before ON</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row201400111661"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1714014111168">Line break after ON</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row28853112069"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p98851811369">Indent table after JOIN</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row36041121369"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p36041712667">Indent ON condition</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row340821319610"><td class="cellrowborder" rowspan="4" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p440817131964">WHERE</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p184080131868">Line break before WHERE</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row66291557815"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1629205484">Line break after WHERE</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row73631325683"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1536312251583">Place WHERE condition on single line</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row68481141989"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p7849541686">Place WHERE condition on single line</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row10259426789"><td class="cellrowborder" rowspan="4" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1267949768">GROUP BY</p>
|
|
<p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p14408310068"></p>
|
|
<p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p39468352128"></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p14679189264">Line break before GROUP</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row222621111218"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p10241321201210">Line break before GROUP BY expression</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row39230262812"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p17373455191216">Indent column list</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row1494693511128"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p141155471211">Stack column list</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row219513181316"><td class="cellrowborder" rowspan="3" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p21914133132">HAVING</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1787463841313">Line break before HAVING</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row480183212133"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1687412388134">Line break after HAVING</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row1617320334138"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p18741438171313">Indent HAVING condition</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row147653361312"><td class="cellrowborder" rowspan="4" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p11476733101314">ORDER BY</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p43454592136">Line break before ORDER</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row28051933111320"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p20345165941316">Line break after BY</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row11137113451318"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p153455591135">Indent column list</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row182565565133"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1634545981312">Stack column list</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row960535611131"><td class="cellrowborder" rowspan="2" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1560516569137">CTE</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1315117164148">Indent subquery braces</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row89031256121313"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1131724742619">Each CTE in a new line</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row12415172720412"><td class="cellrowborder" rowspan="21" valign="top" width="11.05%" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p9554112020203">INSERT</p>
|
|
</td>
|
|
<td class="cellrowborder" rowspan="14" valign="top" width="29.84%" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p10781183111514">INSERT INFO</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.11%" headers="mcps1.3.3.5.2.2.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p878113111514">Line break before opening brace</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row174151927104114"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p18781183155119">Line break after opening brace</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row154151227154115"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1780133217543">Line break before closing brace</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row1341542734111"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p108776447541">Indent column list brace</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row04159274412"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1541217511556">Indent column list</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row194159275416"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1366121515512">Line break before VALUES</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row1415122794110"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p195326311306">Stack column list</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row12415202784111"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p898216341707">Line break before VALUES</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row4415427194111"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p174187275019">Line break before opening brace</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row13415112754116"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p95121635145318">Line break after opening brace</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row12415192794115"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p16938164465316">Line break before closing brace</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row1041511276417"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1955415482537">Indent VALUES expressions list braces</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row241582719418"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p207861240175317">Indent VALUES expressions list</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row9415152713418"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p82368433562">Stack VALUES expressions list</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row74154278419"><td class="cellrowborder" rowspan="2" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p15781931105117">DEFAULT</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1978263112516">Line break before DEFAULT</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row141516273413"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p10782183119516">Indent DEFAULT keyword</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row18414127144118"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p67821314515">CTE</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p7782631155119">Each CTE in a new line</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row12414227104118"><td class="cellrowborder" rowspan="4" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1478213315517">RETURNING</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1378323155110">Line break before RETURNING</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row341432718414"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p11783231175119">Line break after RETURNING</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row54141127174118"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p19783931145112">Indent RETURNING column list</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row5414122764117"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p15783133117512">Place RETURNING column List on single line</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row14147272410"><td class="cellrowborder" rowspan="22" valign="top" width="11.05%" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p95551820122012">UPDATE</p>
|
|
<p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p4984255143713"></p>
|
|
</td>
|
|
<td class="cellrowborder" rowspan="2" valign="top" width="29.84%" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p761710187713">UPDATE Table</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.11%" headers="mcps1.3.3.5.2.2.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p18617418771">Line break before table</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row1841412279415"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p137535211085">Indent table</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row4414162710414"><td class="cellrowborder" rowspan="3" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p15617101819717">SET Clause</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p3617111810717">Line break before SET</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row241482713411"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p3759195198">Indent column assignments list</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row841418274416"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p5513326192">Indent column assignments list</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row18414152794113"><td class="cellrowborder" rowspan="4" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p14778214499">FROM CLAUSE</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p147784146918">Line break before FROM</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row1941412275418"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p827914201910">Line break after FROM</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row441411274419"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p12605111014912">Indent FROM list</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row54133279411"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p8172618124">Stack FROM list</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row3413727154113"><td class="cellrowborder" rowspan="6" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1184611410127">JOIN CLAUSE(FROM CLAUSE)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p8846124181219">Line break before JOIN</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row141332734112"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1874944781220">Line break after JOIN</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row1241382774115"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1253511410139">Line break before ON</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row1241372754117"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p17184408151">Line break after ON</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row74135274410"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p9430111441317">Indent table after JOIN</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row9413172764118"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p113142498131">Indent ON condition</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row1041352754118"><td class="cellrowborder" rowspan="4" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p2618201820715">WHERE CLAUSE</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p146181218575">Line break before WHERE</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row941382717412"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1117153712165">Line break after WHERE</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row114134274411"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1610435320165">Place WHERE condition on single line</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row16413127174113"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p561815181174">Place WHERE condition on single line</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row1041316273419"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p12691173631715">CTE</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1969103614176">Each CTE in a new line</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row941222716419"><td class="cellrowborder" rowspan="2" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1261518485177">RETURNING</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p12615144831711">Line break before RETURNING</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row164121727164113"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1289617519179">Line break after RETURNING</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row241217273414"><td class="cellrowborder" rowspan="19" valign="top" width="11.05%" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p115596201209">DELETE</p>
|
|
</td>
|
|
<td class="cellrowborder" rowspan="5" valign="top" width="29.84%" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p11421753102319">USING CLAUSE</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.11%" headers="mcps1.3.3.5.2.2.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1935751111810">Indent RETURNING column list</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row441215275412"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p4651555131811">Line break before FROM</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row19412142764115"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p7141143893513">Line break after FROM</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row941216274416"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p19848104216357">Indent USING list</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row11412102724112"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p182835473259">Stack FROM list</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row17412162784116"><td class="cellrowborder" rowspan="6" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p67331124202617">JOIN CLAUSE</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1673302419262">Line break before JOIN</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row2412112712415"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p144601728273">Line break after JOIN</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row194121327164111"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p86815612274">Line break before ON</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row24126275414"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p18892798272">Line break after ON</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row74120278419"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1072664932713">Indent table after JOIN</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row941282764110"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p0760926283">Indent ON condition List</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row12411132712411"><td class="cellrowborder" rowspan="4" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p416511532813">WHERE CLAUSE</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p416541582820">Line break before WHERE</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row3411527184111"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p371585012816">Line break after WHERE</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row7411132754117"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p03345422818">Place WHERE condition on single line</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row12411827164112"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p12438125142914">Stack WHERE condition list</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row1941172716418"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p62751059102912">CTE</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1927510592295">Each CTE in a new line</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row54111427204119"><td class="cellrowborder" rowspan="3" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p4964101663010">RETURNING</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p19964151683020">Line break before RETURNING</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row741112714119"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p1716817203301">Line break after RETURNING</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_row19409132734110"><td class="cellrowborder" valign="top" headers="mcps1.3.3.5.2.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p12668161153113">Indent RETURNING column list</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</p></li></ol>
|
|
<p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p11997224152516">Data Studio supports automatic highlighting of the following punctuation mark's pair when cursor is placed before or after the punctuation mark or the punctuation mark is selected.</p>
|
|
<ul id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_ul123432507248"><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li153439503243">Brackets - ( )</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li23741556112411">Square brackets - [ ]</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li52501323254">Braces - { }</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li18201612717">Single-quoted string literals - ' '</li><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li146521741162712">Double-quoted string literals - " "</li></ul>
|
|
<p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p474637661266">Follow the steps below to change case for SQL queries and PL/SQL statements:</p>
|
|
<p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p193598091266"><strong id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_b40368671221350">Method 1</strong></p>
|
|
<ol id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_ol5685804012634"><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li4196031212634"><span>Select the text, and choose <strong id="EN-US_TOPIC_0000001188521090__b1210423476113032">Edit</strong> > <strong id="EN-US_TOPIC_0000001188521090__b777026347113032">Upper Case/Lower Case</strong>.</span><p><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p329420211273">The text changes to the case selected.</p>
|
|
</p></li></ol>
|
|
<p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p5820385412811"><strong id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_b41176975221515">Method 2:</strong></p>
|
|
<ol id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_ol2537641412759"><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li2706114112759"><span>Select the text, and choose <span><img id="EN-US_TOPIC_0000001188521090__image1032206176113032" src="figure/en-us_image_0000001290392456.jpg"></span> or <span><img id="EN-US_TOPIC_0000001188521090__image1800108519113032" src="figure/en-us_image_0000001342592133.jpg"></span> from the toolbar.</span><p><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p5626683812858">The text changes to the case selected.</p>
|
|
</p></li></ol>
|
|
<p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p400205571266"><strong id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_b46056202221621">Method 3:</strong></p>
|
|
<ol id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_ol6349222112910"><li id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_li3455907812910"><span>Select the text, and press Ctrl+Shift+U to change to the upper case or Ctrl+Shift+L to change to the lower case.</span><p><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p6086580612924">The text changes to the case selected.</p>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_section5605395"><h4 class="sectiontitle">SQL Highlighting</h4><p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p54028799">Keywords are highlighted automatically when you enter them (according to the default color scheme) as shown below:</p>
|
|
<p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p16497149"><span><img id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_image17214614185618" src="figure/en-us_image_0000001188362660.jpg"></span></p>
|
|
<p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p61200726">The following figure shows the default color scheme for the specified type of syntax:</p>
|
|
<p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p13935627"><span><img id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_image58311779" src="figure/en-us_image_0000001188362662.png"></span></p>
|
|
<p id="EN-US_TOPIC_0000001188521090__en-us_topic_0185264768_p55043969">You can also customize SQL highlighting schemes for specific types of syntax. For details, see <a href="DWS_DS_138.html#EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_section6791101652013">Syntax Coloring</a>.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="DWS_DS_118.html">SQL Terminal</a></div>
|
|
</div>
|
|
</div>
|
|
|