首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX
›
分享发现
q - Text as Data
xlmo
·
2014-10-23 17:06:15 +08:00
· 3406 次点击
这是一个创建于 3783 天前的主题,其中的信息可能已经有所发展或是发生改变。
q is a command line tool that allows direct execution of SQL-like queries on CSVs/TSVs (and any other tabular text files).
例如:q -d , "select c1 from ./a.csv where c1 > 300"
http://harelba.github.io/q/
a.csv
select
Text
2 条回复
•
2014-10-24 09:59:40 +08:00
1
egen
2014-10-23 19:28:13 +08:00
大赞
看他实现的原理倒不复杂,把输入做成内存数据库,然后调用sqlite执行sql
2
zzcworld
2014-10-24 09:59:40 +08:00 via iPhone
我还以为你说的是KDB+
http://www.kx.com/
这个很厉害 也可以用sql读csv
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
2693 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms ·
UTC 09:27
·
PVG 17:27
·
LAX 01:27
·
JFK 04:27
Developed with
CodeLauncher
♥ Do have faith in what you're doing.