MySQL basis (3) | function
Foreword
MySQL only scalar-valued function of the concept, not the kind of SqlServer table-valued function.
grammar
- create
create function f_add(
a int,
b int
)
returns int
return
(select a + b);
select f_add(1, 2);
- modify
alter function f_add()...
- delete
DROP FUNCTION [ IF EXISTS ] <自定义函数名>
Reference: http://c.biancheng.net/view/2590.html