Search
 
SCRIPT & CODE EXAMPLE
 

SQL

CREATE OR REPLACE FUNCTION

CREATE OR REPLACE FUNCTION totalCustomers 
RETURN number IS 
   total number(2) := 0; 
BEGIN 
   SELECT count(*) into total 
   FROM customers; 
    
   RETURN total; 
END; 
/ 
Comment

CREATE OR REPLACE FUNCTION

CREATE [OR REPLACE] FUNCTION function_name 
[(parameter_name [IN | OUT | IN OUT] type [, ...])] 
RETURN return_datatype 
{IS | AS} 
BEGIN 
   < function_body > 
END [function_name];
Comment

PREVIOUS NEXT
Code Example
Sql :: drop all tables in azure sql database 
Sql :: mysql cast null to string 
Sql :: print integer and string in SQL 
Sql :: postgresql contains 
Sql :: mysql récupérer le code création de vue 
Sql :: delete database mysql command 
Sql :: creating postgresSQL database using the the shell 
Sql :: python sqlite3 update 
Sql :: mysql export database command line 
Sql :: test the postgresql db connection 
Sql :: mysql backup database command line 
Sql :: sql create database 
Sql :: sql server insert inner join 
Sql :: convert multiple columns to rows in sql server 
Sql :: sql inner join with where clause 
Sql :: oracle index hint 
Sql :: sql value exists in column 
Sql :: mysql order by multiple columns 
Sql :: alter table mysql 
Sql :: restart serial number for postgres 
Sql :: role "postgres" does not exist 
Sql :: sql select min row 
Sql :: Save PL/pgSQL output from PostgreSQL to a CSV file 
Sql :: postgresql full text search 
Sql :: GROUP BY With HAVING Clausel 
Sql :: create table like another table 
Sql :: sql get character at index 
Sql :: psql no such file or directory 
Sql :: SQL Syntax of LEFT JOIN 
Sql :: sql primary key syntax 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =