From MonetDB-user's:
You cannot use an ordinary select query in a procedure. You can change the contents of tables or set variables, but you cannot use a query like this. Remember, with such a query, there is a result, and where should the result go?
What's the correct way on MonetDB to create kind of:
CREATE XXXX
BEGIN
SELECT * FROM table;
END
Thanks