This is what i tried. I have table called crop, and want to create stored procedure of selecting all in that table.
Here is the error i got:
MariaDB [sample]> CREATE PROCEDURE AllFarmers
-> AS
-> SELECT * FROM crop
-> GO;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AS SELECT * FROM crop GO' at line 2
Thank you for your help in advance