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 Réponses
+ 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?