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 :: update with join 
Sql :: oracle apex warn on unsaved changes 
Sql :: remove space in sql server 2012 
Sql :: laravel general error 2006 mysql server has gone away 
Sql :: restroe pg_dump example 
Sql :: kill session inactive oracle 
Sql :: how to change the auto increment in existing table mysql 
Sql :: rename table sql server 
Sql :: sql server datetime to string 
Sql :: sql query to select records entered in last 24 hours 
Sql :: python sqlite data delete 
Sql :: how to connect postgresql database with java 
Sql :: mysql check date range 
Sql :: sql running total 
Sql :: Create table Statement Syntax in SQL Server 
Sql :: how to enable mysql 5.7 root user password on linux 
Sql :: mysql permissions 
Sql :: postgressql uuid 
Sql :: for json path sql server 
Sql :: run mysql command from bash 
Sql :: oracle sql copy table without data 
Sql :: mariadb date equals to current_date plus days 
Sql :: mysql identified by syntax error 
Sql :: sql convert date format 
Sql :: sql database connectivity 
Sql :: oracle insert into where 
Sql :: select random sample sql 
Sql :: Cannot invoke "java.sql.Connection.prepareStatement(String)" because "con" is null 
Sql :: uppercase sql 
Sql :: mysql biginteger size 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =