Search
 
SCRIPT & CODE EXAMPLE
 

SQL

procedure syntax

CREATE PROCEDURE procedure_name
AS
sql_statement
GO;
Comment

sql procedure

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 :: c# sql conennection string 
Sql :: mysql get 2nd value in comma separated list 
Sql :: how to limited number of rows in db2 select * from imglib FETCH FIRST 20 ROWS ONLY 
Sql :: oracle cast boolean to varchar2 
Sql :: mysql join same table multiple times group by 
Sql :: how to average max mysql 
Sql :: compress sql file database ubuntu 
Sql :: order of sql 
Sql :: datetrunc month sql 
Sql :: how to login to mysql in homestead 
Sql :: compression of dabatase mysqldumo 
Sql :: check if user defined table type exists in sql server 
Sql :: rename temp table column name in sql server 
Sql :: plsql find location of procedure 
Sql :: illuminate database queryexception could not find driver (sql select * from 
Sql :: sql server get date of previous sunday 
Sql :: FIND ABOVE AVERAGE SALARY EARNER IN SQL 
Sql :: order by in codeigniter query builder 
Sql :: between keyword sql 
Sql :: MySql query execution order: 
Sql :: select top values sql 
Sql :: clone row from another table mysql 
Sql :: sql server get number of working days in a month 
Sql :: mysql update LAST_INSERT_ID() 
Sql :: find the names of sailors who have reserved at least one boat 
Sql :: last mysql 
Sql :: Insert Multiple Rows at Once in SQL 
Sql :: mysql select empty string 
Sql :: mysqlimport 
Sql :: sql select distinct 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =