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.
有没有办法将正在运行的报告查询的结果导出,或者只是将给定表格的内容导出到 CSV 文件(例如,然后可以通过 Excel 或类似文件导入)?
您可以通过从带有标志SELECT的命令行运行语句来导出到 CSV ,例如:--format=csv
SELECT
--format=csv
cockroach sql --format=csv -e 'SELECT * FROM bank.customers;' > csvtest.csv