How to create stored procedure in Appian cloud DB.

Certified Lead Developer

I need to understand how do we create stored procedure in Appian cloud DB.

Trying to execute following code in SQL tab from Appian cloud DB.

CREATE PROCEDURE caseCount(parm INT)
BEGIN
SELECT COUNT(*) FROM `cases`;
END //

It fails with following error.

MySQL said:

#1064 - 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 '' at line 3

  Discussion posts and replies are publicly visible