forked from opengaussexamples/examples
add PL document
This commit is contained in:
parent
810e2d7608
commit
2d58893d57
|
|
@ -5,11 +5,7 @@
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="d8d12963-4777-48e3-9669-309cf5e41d60" name="更改" comment="add trigger">
|
<list default="true" id="d8d12963-4777-48e3-9669-309cf5e41d60" name="更改" comment="add trigger">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change afterPath="$PROJECT_DIR$/src/main/java/Document/PL in Oracle" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/main/java/Generator/OpenGaussGenerator.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/Generator/OpenGaussGenerator.java" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/src/main/java/Main.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/Main.java" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/src/main/java/Parser/AST/Trigger/TriggerObjNode.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/Parser/AST/Trigger/TriggerObjNode.java" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/src/main/java/Parser/OracleParser.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/Parser/OracleParser.java" afterDir="false" />
|
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
|
@ -107,13 +103,6 @@
|
||||||
<option name="presentableId" value="Default" />
|
<option name="presentableId" value="Default" />
|
||||||
<updated>1723106789329</updated>
|
<updated>1723106789329</updated>
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00040" summary="add join convert rule">
|
|
||||||
<created>1726129122571</created>
|
|
||||||
<option name="number" value="00040" />
|
|
||||||
<option name="presentableId" value="LOCAL-00040" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1726129122571</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00041" summary="refractor">
|
<task id="LOCAL-00041" summary="refractor">
|
||||||
<created>1726143715098</created>
|
<created>1726143715098</created>
|
||||||
<option name="number" value="00041" />
|
<option name="number" value="00041" />
|
||||||
|
|
@ -450,7 +439,14 @@
|
||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1726591998690</updated>
|
<updated>1726591998690</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="89" />
|
<task id="LOCAL-00089" summary="add trigger">
|
||||||
|
<created>1726628514219</created>
|
||||||
|
<option name="number" value="00089" />
|
||||||
|
<option name="presentableId" value="LOCAL-00089" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1726628514220</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="90" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="Vcs.Log.Tabs.Properties">
|
<component name="Vcs.Log.Tabs.Properties">
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
DECLARE
|
||||||
|
v_var1 v_type;
|
||||||
|
...
|
||||||
|
BEGIN
|
||||||
|
-- PL/SQL
|
||||||
|
END;
|
||||||
|
|
||||||
|
Example: DECLARE
|
||||||
|
v_name Varchar2(20);
|
||||||
|
v_salary employees.salary%TYPE;
|
||||||
|
BEGIN
|
||||||
|
SELECT name, salary INTO v_name, v_salary FROM employees WHERE employee_id = 100;
|
||||||
|
DBMS_OUTPUT.PUT_LINE('Name: ' || v_name || ', Salary: ' || v_salary);
|
||||||
|
EXCEPTION
|
||||||
|
WHEN NO_DATA_FOUND THEN
|
||||||
|
DBMS_OUTPUT.PUT_LINE('No data found.');
|
||||||
|
END;
|
||||||
Loading…
Reference in New Issue