从命令行运行 QuestDB 查询
我将数据插入QuestDB中的表中。我现在想查询表并从控制台测量其运行时。如何通过命令显示它?
I inserted a data into a table in QuestDB. I want to query now the table and measure its runtime from the console. How I can display it through command?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
最简单的是通过
http:// localhost:9000
和查询从table_name
或简单地table_name
。If you want a command line option then you can run
curl
to 导出到CSVEasiest is to connect to Web Console at
http://localhost:9000
and queryselect * from table_name
or simplytable_name
.If you want a command line option then you can run
curl
to export to csv您始终可以使用本地主机启动网络服务器并像这样输入curl命令
You can always start a webserver using localhost and put curl command like this
您可以使用
psql
基于终端的前端,以便PostgreSQL通过Postgres Wire协议连接到QuestDB,该协议默认情况下在8812端口上公开。如果您已经安装了PSQL,则可以简单地连接为:或者,如果您拥有Docker,也可以运行:
它将在容器中启动
psql
,然后使用主机网络连接到QUESTDB。如果您在其他Docker网络上的容器中运行QuestDB,则必须使用它。例子:
You can use
psql
terminal based front end for Postgresql to connect to QuestDB via the postgres wire protocol that is exposed on 8812 port by default. If you have psql installed already, you can simply connect as:Or if you have docker, you can also run:
which will launch
psql
in a container and connect to QuestDB using the host network. If you run QuestDB in a container on a different docker network, you would have to use that instead.Example: