If I want to test some SQL with the following at the CLI:
psql test < test.sql > test.txt
...is there a way to set a variable with a SELECT, and then use that variable when doing a subsequent INSERT in the test.sql file?
Ideas?
Thanks,
fig
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.