如图,换行还是错的,不换行也是错的,sql语句没问题测试过了,但是放到String里就报错
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 $
drop PROCEDURE if EXISTS a;
CREATE PROCEDURE a()
BEGIN
DECLARE i in' at line 1
求解该怎么写?