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

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -