v_query := ' OPEN C1 FOR SELECT * FROM public."Bankdetails"';
EXECUTE (v_query);
You put the pl/pgsql OPEN command into a string and sent it to the SQL engine via EXECUTE and the SQL engine is complaining that it has no idea what you want it to do.
David J.