About 9,390,000 results
Open links in new tab
  1. PL/SQL Function - Oracle Tutorial

    Summary: in this tutorial, you will learn how to develop a PL/SQL function and how to call it in various places such as an assignment statement, a Boolean expression, and an SQL statement. Similar to a procedure, a PL/SQL function is a reusable program unit stored as a schema object in the Oracle Database.

  2. SQL Functions - Oracle

    SQL functions are built into Oracle Database and are available for use in various appropriate SQL statements. Do not confuse SQL functions with user-defined functions written in PL/SQL.

  3. 3 SQL Functions - Oracle

    SQL functions are used exclusively with SQL commands within SQL statements. There are two general types of SQL functions: single row (or scalar) functions and aggregate functions. These two types differ in the number of database rows on which they act.

  4. How can I return a SELECT query with an oracle function?

    May 31, 2021 · I need to create a function that allows me to return the same result as a SELECT query and that contains pl/sql code. I tried something really simple : RETURN SYS_REFCURSOR. l_rc SYS_REFCURSOR; OPEN l_rc. FOR SELECT * …

  5. PL/SQL Functions - GeeksforGeeks

    Jun 15, 2024 · To create a procedure in PL/SQL, use the CREATE FUNCTION statement. The syntax to create a function in PL/SQL is given below: (parameter_name type [, …]) In this example, we create a PL/SQL function to calculate factorial of a number. To call a function, specify the function name and any required parameters.

  6. Oracle / PLSQL: Functions - TechOnTheNet

    This Oracle tutorial explains how to create and drop functions in Oracle/PLSQL with syntax and examples. Just as you can in other languages, you can create your own functions in Oracle. The syntax to create a function in Oracle is: [ (parameter [,parameter]) ] RETURN return_datatype. [declaration_section] executable_section. exception_section]

  7. calling a function from PL/SQL in a select statement in ORACLE

    I am trying to use the function in a select statement. for example we can write a query like select count(column_name) from table_name. Here count is a function. I want to use my own functions like this. I've tried differently (using the function outside …

  8. 7 Functions - Oracle Help Center

    Functions are similar to operators in that they manipulate data items and return a result. Functions differ from operators in the format of their arguments. This format enables them to operate on zero, one, two, or more arguments: function (argument, argument, ...)

  9. Oracle PL/SQL Stored Procedure & Functions with Examples

    Jun 28, 2024 · A Function should either return a value or raise the exception, i.e. return is mandatory in functions. Function with no DML statements can be directly called in SELECT query whereas the function with DML operation can only be called from other PL/SQL blocks.

  10. Define a Function Using the WITH Clause in Oracle

    Dec 5, 2020 · You want to define a function in Oracle using WITH clause. Solution. Starting with Oracle Database 12.1, you can define functions as well as procedures within the same SQL statement in which the SELECT statement appears.

  11. Some results have been removed
Refresh