Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想管道 SQLite 查询的输出。使用 MySQL,我会这样做mysql --execute "MYQUERY"。如何使用 SQLite 实现相同的目标?
mysql --execute "MYQUERY"
该sqlite3命令的可选第二个参数是要执行的 SQL。也是如此sqlite3 path/to/my/db "MYQUERY"。
sqlite3
sqlite3 path/to/my/db "MYQUERY"