I have only one DML statement inside the procedure above.
Do make it more clear I will post the procedure witch will call the procedure "myProc"
The procedure "myProc" "will be called several times by the procedure "callMyProc" with different properties.
So I want do execute this procedure with "Property1", "Property2" ,....,"PropertyN" parallel.
PROCEDURE "callMyProc" ( ) LANGUAGE SQLSCRIPT SQL SECURITY INVOKER DEFAULT SCHEMA TEST_SYSTEM AS BEGIN DECLARE a_property VARCHAR(50) ARRAY; DECLARE a_Length INT; DECLARE a_Index INT; DECLARE property VARCHAR(50); property_Tab = SELECT DISTINCT "PROPERTY" FROM "PROPERTY_TABLE" ORDER BY "PROPERTY" ASC; a_property := ARRAY_AGG(:attribute_Tab.PROPERTY); a_Length := CARDINALITY(:a_property); FOR a_Index IN 1 .. a_Length DO property := :a_property[:a_Index]; CALL "myProc"(:property); END FOR; END;