forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: luhuayi <luhuayi@huawei.com> Co-committed-by: luhuayi <luhuayi@huawei.com>
18 lines
2.3 KiB
HTML
18 lines
2.3 KiB
HTML
<a name="EN-US_TOPIC_0000001811491233"></a><a name="EN-US_TOPIC_0000001811491233"></a>
|
|
|
|
<h1 class="topictitle1">Overview</h1>
|
|
<div id="body1537424421364"><div class="section" id="EN-US_TOPIC_0000001811491233__section36582059103817"><h4 class="sectiontitle">What Is a GaussDB(DWS) Stored Procedure?</h4><p id="EN-US_TOPIC_0000001811491233__p83601449398">In <span id="EN-US_TOPIC_0000001811491233__text1591217503367">GaussDB(DWS)</span>, business rules and logics are saved as stored procedures.</p>
|
|
<p id="EN-US_TOPIC_0000001811491233__p23601949392">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_0000001811491233__p1436016410397">For details about how to create and invoke a stored procedure, see section "CREATE PROCEDURE" in <em id="EN-US_TOPIC_0000001811491233__i522820763712">SQL Syntax Reference</em>.</p>
|
|
<p id="EN-US_TOPIC_0000001811491233__p036020493910">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_0000001811491233__section1539664463718"><h4 class="sectiontitle">GaussDB(DWS) Stored Procedure Data Types</h4><p id="EN-US_TOPIC_0000001811491233__p365744553711">A data type refers to a value set and an operation set defined on the value set. A <span id="EN-US_TOPIC_0000001811491233__text7413164543713">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_0000001811491233__text1141314512378">GaussDB(DWS)</span> uses corresponding functions to perform operations on data based on data types. For example, <span id="EN-US_TOPIC_0000001811491233__text1841319450376">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>
|
|
|