Search code examples
sqlpsql

I'm tyring to use \i on PSQL on Windows


I'm trying to execute commands from a file doing the following

\i C:\Users\nick-\Downloads\person.sql

and am getting this back

C:: Permission denied

What am I doing wrong? Am I not following the correct file path or is there some other issue that's likely?


Solution

  • \i c:/Users/nick-/Downloads/person.sql worked