Jump to content

Stores Procedures help


TLP

Recommended Posts

hello, I am trying execute this procedure but I keep getting a error, I think the error is the delimiter but for me its correct, how this can be fixed?

 

DELIMITER ||
CREATE FUNCTION calculaMedia (m1 FLOAT(2,6),m2 FLOAT(2,6))
RETURNS FLOAT(2,6)
  BEGIN
   DECLARE media FLOAT(2,6);
   SET media = (m1+m2)/2;
   RETURN media;
  END||

Link to comment
https://forums.phpfreaks.com/topic/136142-stores-procedures-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.