Syntax\n------\n\nOPEN cursor_name [[USING variable[,...]] | [expression[,...]]];\n\nDescription\n-----------\n\nThis statement opens a cursor which was previously declared with DECLARE CURSOR.\n\nThe query associated to the DECLARE CURSOR is executed when OPEN is executed. It is important to remember this if the query produces an error, or calls functions which have side effects.\n\nThis is necessary in order to FETCH rows from a cursor.\n\nSee Cursor Overview for an example.\n\nURL: https://mariadb.com/docs/server/reference/sql-statements/programmatic-compound-statements/programmatic-compound-statements-cursors/open