0
votes
1answer
347 views

How can I give psql a variable instead of an sql file as input?

So I have some sql in a varible. I could put that in a file and give it to psql as input but I wonder if there is an easy way to do this without the file ?
0
votes
1answer
77 views

How do i pass a variable to a function thats already being escaped?

What i want to do is create multiple informix sql statements & later run them via a bash script. Here is what i have so far (this works) but is meant to be run from a cron job so it only does ...
1
vote
1answer
1k views

Running multiple SQL files at once

I feel like I've run commands like the following in the past, but I'm getting an error trying it right now. Maybe I'm just having a brainfart, and my syntax is off. mysql -u root -p db_name < ...