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

Popular posts from this blog

python - rpy2 import is not working -

javascript - How to get MySQL query result returned using $.ajax -

javascript - How to use the code plugin with popcornjs -