我有以下代码:
CREATE DEFINER=`root`@`localhost` PROCEDURE `test1`()
BEGIN
declare pAI integer;
SELECT `AUTO_INCREMENT`
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'lafuwa'
AND TABLE_NAME = 'untersuchungsauftraege' into pAI;
ALTER TABLE lafuwa.untersuchungsauftraege AUTO_INCREMENT= pAI +2;
END
并获得一个SQL错误。 代码如何正确?