forked from docs/doc-exports
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>
18 lines
2.3 KiB
HTML
18 lines
2.3 KiB
HTML
<a name="EN-US_TOPIC_0000001460563176"></a><a name="EN-US_TOPIC_0000001460563176"></a>
|
|
|
|
<h1 class="topictitle1">Overview</h1>
|
|
<div id="body1537424421364"><div class="section" id="EN-US_TOPIC_0000001460563176__section1738653017398"><h4 class="sectiontitle">What Is a GaussDB(DWS) Stored Procedure?</h4><p id="EN-US_TOPIC_0000001460563176__p37923493919">In <span id="EN-US_TOPIC_0000001460563176__text122451768183">GaussDB(DWS)</span>, business rules and logics are saved as stored procedures.</p>
|
|
<p id="EN-US_TOPIC_0000001460563176__p167923433916">A stored procedure is a combination of SQL, PL/SQL, and Java statements. Stored procedures can move the code that executes business rules from applications to databases. In this way, code can be used by multiple programs at a time.</p>
|
|
<p id="EN-US_TOPIC_0000001460563176__p1579163433920">For how to create and invoke a stored procedure, see "CREATE PROCEDURE" in the <em id="EN-US_TOPIC_0000001460563176__i13305533451347">Data Warehouse Service (DWS) SQL Syntax Reference</em>.</p>
|
|
<p id="EN-US_TOPIC_0000001460563176__p17796342398">The functions created using the PL/pgSQL language mentioned in <a href="dws_04_0510.html">GaussDB(DWS) PL/pgSQL Functions</a> are similar to the application methods of stored procedures. Unless otherwise specified, the following sections apply to stored procedures and PL/pgSQL functions.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001460563176__section1539664463718"><h4 class="sectiontitle">GaussDB(DWS) Stored Procedure Data Types</h4><p id="EN-US_TOPIC_0000001460563176__p365744553711">A data type refers to a value set and an operation set defined on the value set. A <span id="EN-US_TOPIC_0000001460563176__text38462215202">GaussDB(DWS)</span> database consists of tables, each of which is defined by its own columns. Each column corresponds to a data type. <span id="EN-US_TOPIC_0000001460563176__text984715222015">GaussDB(DWS)</span> uses corresponding functions to perform operations on data based on data types. For example, <span id="EN-US_TOPIC_0000001460563176__text2847172122013">GaussDB(DWS)</span> can perform addition, subtraction, multiplication, and division operations on data of numeric values.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0512.html">GaussDB(DWS) Stored Procedure</a></div>
|
|
</div>
|
|
</div>
|
|
|