forked from docs/doc-exports
Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com> Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
18 lines
5.2 KiB
HTML
18 lines
5.2 KiB
HTML
<a name="das_04_0047"></a><a name="das_04_0047"></a>
|
|
|
|
<h1 class="topictitle1">Executing SQL Statements</h1>
|
|
<div id="body1531466991825"><div class="section" id="das_04_0047__section112555914186"><h4 class="sectiontitle">Procedure</h4><ol id="das_04_0047__ol357117409449"><li id="das_04_0047__li38761328204514"><span>On the top menu bar, choose <strong id="das_04_0047__b1668903514440">SQL Operations</strong> > <strong id="das_04_0047__b45267015458">SQL Window</strong>. In the SQL window, select a database from the navigation pane.</span></li><li id="das_04_0047__li865994011591"><span>Enter SQL statements in the SQL window and click <strong id="das_04_0047__b1910303619537">Execute SQL</strong>.</span><p><ul id="das_04_0047__ul1445123491616"><li id="das_04_0047__li718811132125">Enabling <strong id="das_04_0047__b16654915175118">SQL Input Prompt</strong> is recommended<strong id="das_04_0047__b650417114516">.</strong> It helps you to select your desired database, table, or field name as prompted to quickly enter statements in the SQL window.</li><li id="das_04_0047__li869110386167">To protect query result sets from being displayed as garbled characters caused by UTF-8, the default encoding format, select an encoding format as needed.</li><li id="das_04_0047__li15444103481615">To execute multiple SQL statements at a time, separate them using semicolons (;). In this case, click <strong id="das_04_0047__b259756195911">Full Screen</strong> to view the logics in SQL statements clearly.<ul id="das_04_0047__ul8566150131816"><li id="das_04_0047__li16444133491614">To execute some of the SQL statements, select the statements before executing them.</li><li id="das_04_0047__li244515348169">To execute all the SQL statements, do not select any SQL statements or select all of them.</li></ul>
|
|
</li></ul>
|
|
</p></li><li id="das_04_0047__li125091725194618"><span>View the SQL execution details on <strong id="das_04_0047__b18770940605">Executed SQL Statements</strong> and <strong id="das_04_0047__b378010404019">Messages</strong> tab pages, including the SQL execution history, execution status, impact scope, execution progress, and elapsed time.</span></li><li id="das_04_0047__li53576710813"><span>On the <strong id="das_04_0047__b1481204416011">Result Sets</strong> tab, view the execution details. You can perform the following operations on the result sets:</span><p><ul id="das_04_0047__ul373662017207"><li id="das_04_0047__li17703191442115"><strong id="das_04_0047__b129715212015">Copy Row</strong>/<strong id="das_04_0047__b141045521008">Copy Column</strong>: copies a row or column for reuse.</li><li id="das_04_0047__li117914246215"><strong id="das_04_0047__b1087563216">Column Settings</strong>: customizes the columns to display when there are a large number of columns in the query result.</li><li id="das_04_0047__li16737112015201"><strong id="das_04_0047__b144641642133913">Binary to Hexadecimal</strong>: converts the binary data in the result set into hexadecimal data for display.</li><li id="das_04_0047__li1373713202202"><strong id="das_04_0047__b194591014917">Refresh</strong>: refreshes the changed data.</li><li id="das_04_0047__li339919276206"><strong id="das_04_0047__b735211395514">Row Details</strong>: displays the column field name, value, and type of the selected row.</li><li id="das_04_0047__li856033514201"><strong id="das_04_0047__b6612174524017">Add</strong>: adds an empty row to the result set.</li><li id="das_04_0047__li15754164210209"><strong id="das_04_0047__b14366186194217">Submit</strong>: views the SQL statements to be modified. After you click <strong id="das_04_0047__b0735124714210">OK</strong>, the result set is updated to the latest.</li><li id="das_04_0047__li1872292783411"><strong id="das_04_0047__b144101178433">Delete Row</strong>: deletes the selected row, including the data.</li><li id="das_04_0047__li02681956162013"><strong id="das_04_0047__b455713355434">Export</strong>: allows you to export the data in a SQL or CSV file. A maximum of 10,000 rows of data can be exported.</li><li id="das_04_0047__li10236155083814"><strong id="das_04_0047__b19972164915448">Export More</strong>: redirects you to the data export page and allows you to export over 10,000 rows of data.<div class="note" id="das_04_0047__note1723655019381"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="das_04_0047__ul42351450133817"><li id="das_04_0047__li1623535043811">If the result set involves a view, you cannot edit the data.</li><li id="das_04_0047__li18235145033818">If the type of the result set is metadata, the data cannot be edited or displayed on multiple pages.</li><li id="das_04_0047__li9235175018385">If the result set involves multiple tables, you cannot edit the data.</li><li id="das_04_0047__li6235150113818">If the result set involves only one table and does not include all the primary key columns of the table or no primary key is found, you cannot edit the data.</li><li id="das_04_0047__li14235450123819">Virtual tables (for example, tables generated during SQL execution) cannot be edited.</li></ul>
|
|
</div></div>
|
|
</li></ul>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="das_04_0045.html">SQL Operations</a></div>
|
|
</div>
|
|
</div>
|
|
|