Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle procedure teamplate

CREATE OR REPLACE PROCEDURE my_scheme.my_procedure(param1 IN VARCHAR2) IS
    cnumber NUMBER;
BEGIN
    cnumber := 10;
    INSERT INTO my_table (num_field) VALUES (param1 + cnumber);
    COMMIT;
EXCEPTION
    WHEN OTHERS THEN
        raise_application_error(-20001, 'An error was encountered - '
            || sqlcode || ' -ERROR- ' || sqlerrm);
END;
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql insert into multiple tables 
Sql :: sql datetime functions 
Sql :: primary key with prefix sql 
Sql :: error code 1241 mysql 
Sql :: sql except query 
Sql :: delete join sql server 
Sql :: stored procedure 
Sql :: sql count * vs count 1 
Sql :: quit mysql 
Sql :: sql server port 1434 
Sql :: sql file in postgres with pgadmin 
Sql :: how to link java and mysql 
Sql :: primary key auto increment in postgresql 
Sql :: sql limit 
Sql :: 18446744073709551615 mariadb left join order by 
Sql :: install sql server windows 10 
Sql :: SQLite (sqlite 3.27.2) sample 
Sql :: hou to run job from cmd .exe sql server jop 
Sql :: call procedure in wordpress 
Sql :: sql update from two different database 
Sql :: sql trigger difference between for and after 
Sql :: Un mask mysql 
Sql :: sqlite explain plan 
Sql :: oracle sql developer script output limit 
Sql :: https://livesql.oracle.com/apex/livesql/s/l8fedwph53gt5gigbacwvu6m0 
Sql :: how to count with except in psql 
Sql :: SQL AS With Expression 
Sql :: oracle_home sqlplus 
Sql :: mysql config slave 
Sql :: SQL Create Named CHECK Constraint 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =