We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be great to be able to pass in bind parameters for parameterized queries when using sql2csv. Something along the lines of:
sql2csv
query.sql
select * from phone_book where last_name=:p_last_name;
Script:
sql2csv query.sql -b "p_last_name='Jones'" --db <connection string>
The text was updated successfully, but these errors were encountered:
It seems like it can be done that way, it worked for me:
CATEGORIES=(table1 table2 table3) for i in "${CATEGORIES[@]}" do : sql2csv --db <connection string> --query "SELECT * FROM v_${i}" > csv/$i done
Not exactly the same process but maybe it'll help someone else.
Sorry, something went wrong.
No branches or pull requests
It would be great to be able to pass in bind parameters for parameterized queries when using
sql2csv
. Something along the lines of:query.sql
Script:
The text was updated successfully, but these errors were encountered: