gpt4 book ai didi

sql - CSV 可通过 SQL 查询

转载 作者:行者123 更新时间:2023-12-01 01:56:04 25 4
gpt4 key购买 nike

有没有一种工具可以在 CSV 文件之上自动为我提供 SQL 接口(interface)?

最佳答案

您可以使用http://harelba.github.io/q/

示例(来自 their README ):

q "SELECT COUNT(*) FROM ./my_file.csv WHERE c3 > 32.3"

还有一个 Python 模块和程序: https://pythonhosted.org/querycsv/

或者在 Go 中: https://github.com/dinedal/textql

您也可以使用此 PowerShell 脚本: Invoke-CsvSqlcmd

可以找到许多其他工具 here .

关于sql - CSV 可通过 SQL 查询,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40426930/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com