I am trying to create a mysql procedure dynamically using jdbc. To create it, I need to change delimiter first. However, on executing this statement:
DELIMITER $$
I am getting error:
Caused by: org.mariadb.jdbc.internal.util.dao.QueryException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER $$' at line 1
How can I resolve this issue?