Apr 29, 2001 #1 fig Programmer Apr 29, 2001 1 US If I want to test some SQL with the following at the CLI: Code: 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
If I want to test some SQL with the following at the CLI: Code: 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