I have a stored procedure that requires a few parameters:
CREATE OR REPLACE FUNCTION USP_GET_FAID(IN "IN_metricsId" TEXT,
IN "IN_shop" TEXT,
IN "IN_shopUserId" TEXT,
IN "IN_session" TEXT DEFAULT NULL,
IN "IN_ipHash" TEXT DEFAULT NULL,
IN "IN_shopSession" TEXT DEFAULT NULL,
IN "IN_userAgent" TEXT DEFAULT NULL)
RETURNS INT8 AS $$
I'd like to call this stored procedure and to provide the parameters through the results of a SELECT query, so the Stored Procedure would run for each of the lines.
I don't care about what the function returns, so it can be ignored.
How is it possible to do it (if at all)?
metrics_idinstead (You can still writeMetrics_IDif you want to). But if you insist on typing all those double quotes all the time, then I won't stop you - my experience is, that this usually has no benefit at all, but a lot of (hidden) problems in the long run.