Hope you can help.
I have this stored procedure. Works fine, but I have problems using comparison operators in my stored procedure. The point here is to find cars who been driving above 10000.
I have been looking for the answer, but for some reason, can't find the solution.
elimiter //
CREATE PROCEDURE DISTANCE (kilometerafstand INT)
BEGIN
SELECT bil.registreringsnummer, bil.kilometerstand, biltype.maerke, biltype.model
FROM bil
INNER JOIN biltype ON bil.id = biltype.id
WHERE bil.kilometerstand = kilometerafstand;
END;
//
call DISTANCE ( > 10000)
The code works fine. It's just the operators in my call DISTANCE.
Thank you!