0
Can I create a custom function in SQL ?
Here, SUM(),AVG(),SQRT() are pre-defined function. So can I create a new function ?
2 Respuestas
+ 1
CREATE FUNCTION function-name (Parameters)
RETURNS return-type
AS
BEGIN
Statement 1
Statement 2
.
.
Statement n
RETURN return-value
END
Yes! you can, This is the way of creating function
0
"Select cust(column2) as custom from student;"
Here how to define cust function in query box?