CREATE FUNCTION |
Créer une fonction |
---|---|
Oracle Database SQL |
Syntaxe
CREATE [OR REPLACE] FUNCTION [schema.]function [(argument [IN|OUT|IN OUT] [NOCOPY datatype])] RETURN datatype [ AUTHID CURRENT_USER AUTHID DEFINER DETERMINISTIC PARALLEL_ENABLE [ (PARTITION argument BY ANY) [{ORDER|CLUSTER} BY (column1,column2..)] (PARTITION argument BY {HASH|RANGE}(column1,column2..)) [{ORDER|CLUSTER} BY (column1,column2..)] ] ] [PIPELINED] AS plsql_function_body |
CREATE [OR REPLACE] FUNCTION [schema.]function [(argument [IN|OUT|IN OUT] [NOCOPY datatype])] RETURN datatype [ AUTHID CURRENT_USER AUTHID DEFINER DETERMINISTIC PARALLEL_ENABLE [ (PARTITION argument BY ANY) [{ORDER|CLUSTER} BY (column1,column2..)] (PARTITION argument BY {HASH|RANGE}(column1,column2..)) [{ORDER|CLUSTER} BY (column1,column2..)] ] ] [PIPELINED | AGGREGATE] USING schema.implementation_type |
CREATE [OR REPLACE] FUNCTION [schema.]function [(argument [IN|OUT|IN OUT] [NOCOPY datatype])] RETURN datatype [ AUTHID CURRENT_USER AUTHID DEFINER DETERMINISTIC PARALLEL_ENABLE [ (PARTITION argument BY ANY) [{ORDER|CLUSTER} BY (column1,column2..)] (PARTITION argument BY {HASH|RANGE}(column1,column2..)) [{ORDER|CLUSTER} BY (column1,column2..)] ] ] AS LANGUAGE JAVA NAME 'string' |
CREATE [OR REPLACE] FUNCTION [schema.]function [(argument [IN|OUT|IN OUT] [NOCOPY datatype])] RETURN datatype [ AUTHID CURRENT_USER AUTHID DEFINER DETERMINISTIC PARALLEL_ENABLE [ (PARTITION argument BY ANY) [{ORDER|CLUSTER} BY (column1,column2..)] (PARTITION argument BY {HASH|RANGE}(column1,column2..)) [{ORDER|CLUSTER} BY (column1,column2..)] ] ] AS LANGUAGE C [NAME name] LIBRARY lib_name [WITH CONTEXT][PARAMETERS params] |
Description
Cette instruction permet de créer une fonction utilisateur contenu dans la base de données.
Voir également
Article - Les géants de l'informatique - Oracle
Dernière mise à jour : Lundi, le 11 mai 2015