add document of function

This commit is contained in:
XudongXie 2024-09-17 16:21:38 +08:00
parent 1b04f51349
commit 9d91b73238
3 changed files with 23 additions and 14 deletions

View File

@ -4,11 +4,10 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="d8d12963-4777-48e3-9669-309cf5e41d60" name="更改" comment="add procedure"> <list default="true" id="d8d12963-4777-48e3-9669-309cf5e41d60" name="更改" comment="add document of rollback, commot, execute">
<change afterPath="$PROJECT_DIR$/src/main/java/Document/Commit,rollback,execute in Oracle" afterDir="false" /> <change afterPath="$PROJECT_DIR$/src/main/java/Document/Function in Oracle" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/Document/Todolist" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/Document/Todolist" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/main/java/Document/Todolist" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/Document/Todolist" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/Lexer/OracleLexer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/Lexer/OracleLexer.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" />
@ -106,13 +105,6 @@
<option name="presentableId" value="Default" /> <option name="presentableId" value="Default" />
<updated>1723106789329</updated> <updated>1723106789329</updated>
</task> </task>
<task id="LOCAL-00033" summary="add parseSelect">
<created>1726041355829</created>
<option name="number" value="00033" />
<option name="presentableId" value="LOCAL-00033" />
<option name="project" value="LOCAL" />
<updated>1726041355829</updated>
</task>
<task id="LOCAL-00034" summary="revise"> <task id="LOCAL-00034" summary="revise">
<created>1726059547456</created> <created>1726059547456</created>
<option name="number" value="00034" /> <option name="number" value="00034" />
@ -449,7 +441,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1726554513046</updated> <updated>1726554513046</updated>
</task> </task>
<option name="localTasksCounter" value="82" /> <task id="LOCAL-00082" summary="add document of rollback, commot, execute">
<created>1726555125392</created>
<option name="number" value="00082" />
<option name="presentableId" value="LOCAL-00082" />
<option name="project" value="LOCAL" />
<updated>1726555125392</updated>
</task>
<option name="localTasksCounter" value="83" />
<servers /> <servers />
</component> </component>
<component name="Vcs.Log.Tabs.Properties"> <component name="Vcs.Log.Tabs.Properties">
@ -464,7 +463,6 @@
</option> </option>
</component> </component>
<component name="VcsManagerConfiguration"> <component name="VcsManagerConfiguration">
<MESSAGE value="add alter table grammar document" />
<MESSAGE value="add alter table ast class" /> <MESSAGE value="add alter table ast class" />
<MESSAGE value="add alter table keywords" /> <MESSAGE value="add alter table keywords" />
<MESSAGE value="add alter table parser" /> <MESSAGE value="add alter table parser" />
@ -489,7 +487,8 @@
<MESSAGE value="add document of Procedure" /> <MESSAGE value="add document of Procedure" />
<MESSAGE value="add ast classes of procedure" /> <MESSAGE value="add ast classes of procedure" />
<MESSAGE value="add procedure" /> <MESSAGE value="add procedure" />
<option name="LAST_COMMIT_MESSAGE" value="add procedure" /> <MESSAGE value="add document of rollback, commot, execute" />
<option name="LAST_COMMIT_MESSAGE" value="add document of rollback, commot, execute" />
</component> </component>
<component name="XDebuggerManager"> <component name="XDebuggerManager">
<watches-manager> <watches-manager>

View File

@ -0,0 +1,10 @@
CREATE OR REPLACE FUNCTION function_name (
parameter1 [IN | OUT] datatype1 ,
parameter2 [IN | OUT] datatype2 ,
...
) RETURN return_datatype IS
BEGIN
-- function body
RETURN result;
END;
/

View File

@ -15,7 +15,7 @@ Operation
 continue、exit 1  continue、exit 1
 return ***  return ***
 exception 1  exception 1
 commit、rollback、execute ***  commit、rollback、execute 1
 alter table 1  alter table 1
 create table 1  create table 1
 drop table 1  drop table 1