I create my first function with the following code:
CREATE FUNCTION CTRLPRODUCAO.COMPARATOTAIS (AG INT, P INT, ANO INT) RETURNS BOOLEAN DETERMINISTIC BEGIN (...) END
When I ran the command, I received a Workbench return: "0 lines were affected." This is normal?
When I run SELECT CTRLPRODUCAO.COMPARATOTAIS (1, 9, 2011) AS TEST;
I get
"Error code: 1305 CTRLPRODUCAO.COMPARATOTAIS FUNCTION does not exist"
What am I doing wrong?
source share