Don't want to say much, have written so much, directly on the code. For long periods of unused memory
CREATE OR REPLACE PROCEDURE test_rpocedure is
NUMER1 Numer; --Declaring a numeric type variable
STRING1 VARCHAR2 (50); --Declaring a String type variable
Colume number CONSTANT: = 1; --the constant that declares the directly assigned value
Row_test Table_a%rowtype; --a row data type with a declaration type of table A
Test_cur Curser is SELECT * from Table_b; --Declares the cursor test, which is the data of table B
BEGIN
--Conditional branching:
IF A > 0 Then
B: = 1;
ELSE IF A < 0 Then
UPDATE table_a SET colume_c = ' 2 ';
ELSE
C: = 3;
END IF;
--General for Loop
For D in 1..10 LOOP
BEGIN
E: = D;
END LOOP;
--Loop of the cursor
For Cur_test2 in (SELECT * from Table_q) LOOP
BEGIN
xxxxxx
END LOOP;
END test_rpocedure;
Oracle's stored procedure records and other condition optimizations (not yet complete)