usql
Verified for current stable LTS
Usql Commands
Usql command syntax with verified terminal examples.
Commands
7 commands for Usql
usql HTTP
Usql Command: Connect To Database
usql <sqlserver|mysql|postgres|sqlite3|...>://<username>:<password>@<host>:<port>/<database_name> usql Operations
Usql Command: Display Database Schema Interactively
\d usql Operations
Usql Command: Execute Commands From File
usql -f <path/to/query.sql> usql Operations
Usql Command: Execute Specific Sql Command
usql -c "<sql_command>" usql Operations
Usql Command: Export Query Results To File
\g <path/to/file_with_results> usql Operations
Usql Command: Import Data From Csv
\copy <path/to/data.csv> <table_name> usql Operations
Usql Command: Run Sql Command Interactively
<command> Suggest a Usql Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Usql workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.