Search
 
SCRIPT & CODE EXAMPLE
 

SQL

function in plsql

CREATE FUNCTION function_name … RETURN BOOLEAN IS
	Definitions;
BEGIN
	Statement;
	RETURN "Hello World!";
END;
Comment

function plsql

CREATE OR REPLACE FUNCTION my_schema.my_function(param1 IN number) RETURN output1 IS
    cnumber NUMBER;
BEGIN
    cnumber := 2;
    RETURN (cnumber * param1);
EXCEPTION
    WHEN OTHERS THEN
        raise_application_error(-20001, 'An error was encountered - '
            || sqlcode || ' -ERROR- ' || sqlerrm);
END;
Comment

PREVIOUS NEXT
Code Example
Sql :: duplicate row mysql 
Sql :: sql order by 
Sql :: sqlite get columns for table 
Sql :: foreign key sql 
Sql :: google sheets filter rows above current cell 
Sql :: default username and password for oracle 11g 
Sql :: mysql earlier than date 
Sql :: how use trigger in sql 
Sql :: Concatenate columns in table 
Sql :: sql query for displaying age from oldest to youngest 
Sql :: joint query 
Sql :: stored function in sql 
Sql :: sql server download for windows 10 64 bit 
Sql :: SQL UNIQUE Constraint 
Sql :: oracle sql distinct vs unique 
Sql :: sql datetime functions 
Sql :: python list from sql 
Sql :: sql count * vs count 1 
Sql :: mysql insert multiple rows based on select 
Sql :: decimal to integer sql 
Sql :: subquery sql 
Sql :: oracle exchange subpartition 
Sql :: SQL Server dynamic pivot unknown number of columns 
Sql :: decode plsql 
Sql :: Serilog Table Configurations for MSSQLSERVER SINK 
Sql :: sintaxis SELECT sql 
Sql :: create sql table from script inline primary key constraint 
Sql :: create relationship with betwen two tables in postgersql 
Sql :: learnxinyminutes sql 
Sql :: mysql order specific records at the top 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =