call simple database procedure using Slick 3.0
问题 I have written a simple database procedure in mySQL as follows: DROP PROCEDURE IF EXISTS sp_doSomething; DELIMITER // CREATE PROCEDURE sp_doSomething (IN pVal1 varchar(100), IN pVal2 int(15) ) BEGIN DECLARE vCnt int(5) DEFAULT 0; DECLARE vID int(15) DEFAULT 0; DECLARE vTempID int(15) DEFAULT 0; -- get ID SELECT id INTO vID FROM T1 WHERE name = pVal1; -- get count SELECT count(*) INTO vCnt FROM T1 WHERE owner = vID; -- get the log INSERT INTO log select CONCAT('-v1-:', pVal1, ':-v2-:', pVal2);