Search
 
SCRIPT & CODE EXAMPLE
 

SQL

MySQL stored procedure vs function

The most general difference between procedures and functions is that they are invoked differently and for different purposes:

A procedure does not return a value. Instead, it is invoked with a CALL statement to perform an operation such as modifying a table or processing retrieved records.
A function is invoked within an expression and returns a single value directly to the caller to be used in the expression.
You cannot invoke a function with a CALL statement, nor can you invoke a procedure in an expression.
Comment

PREVIOUS NEXT
Code Example
Sql :: sql show table info 
Sql :: psql load dump 
Sql :: mysql server not starting in xampp in mac 
Sql :: como saber si tengo mysql instalado 
Sql :: show query code after create table in sql 
Sql :: select distinct after join 
Sql :: MySQL get all previous date record 
Sql :: alter table myisam to innodb 
Sql :: enter mysql command line 
Sql :: delete db postgres 
Sql :: Converting mysql tables to charset utf8mb4 
Sql :: oracle index size calculation 
Sql :: median mysql 
Sql :: alternative for LIMIT sql 
Sql :: sql convert date format 
Sql :: SQL Multi-line Comments 
Sql :: q operator in sql 
Sql :: rename column name sql server 
Sql :: sql integer to serial 
Sql :: Query to remove duplicate rows from a table 
Sql :: mysql max 
Sql :: how to run a function in sql 
Sql :: alter table query sql server change column 
Sql :: sql 2nd highest salary 
Sql :: sql right join 
Sql :: sql select inside select 
Sql :: postgres sum when 
Sql :: SQL Rename Column in a Table 
Sql :: SQL BACKUP DATABASE for SQL Server 
Sql :: SQL print multiple variable 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =