I have never done one before and am trying to work through an online guide but I can't seem to find a good example of one with parameters.
CREATE PROCEDURE `calcdistance` (
IN ulat varchar,
IN ulon varchar,
IN clat varchar,
IN clon varchar)
BEGIN
Select DEGREES(ACOS(SIN(RADIANS(ulat))
* SIN(RADIANS(clat))
+ COS(RADIANS(ulat))
* COS(RADIANS(clat))
* COS(RADIANS(ulon - ulon))))) * 69.09 AS distance
END
the error MySQL admin gives me when I try this is:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '  IN ulat varchar,
    IN ulon varchar,
    IN clat varchar,
    IN cl' at line 2 (error 1064)