postgresql - Postgres csv upload stored procedures -
I have a stored procedure to copy the details from the CSV file to the database table.
Function Gis_portal.copycsv (IN path in text) As $$ copy back with zero as gis_portal.temp_excel DELIMITER ',' $$ LANGUAGE Sql Volatile LEAKPROOF;
but it is showing as an error:
Error: Syntax error on or near the "path" SQL state: 42601 Character: 101
The path here is dynamic, please help me.
COPY does not support statement variables - with the plan only makes statements and SQL language dynamic SQL Does not support - so you should use plpgsql language
see
Comments
Post a Comment