在postgresl中查询指定日期数据的方法:1.启动postgresql服务;2.登录postgresql数据库;3.执行命令查询指定日期数据;具体步骤如下:首先,在命令行中启动postgresql服务;net start postgre
在postgresl中查询指定日期数据的方法:1.启动postgresql服务;2.登录postgresql数据库;3.执行命令查询指定日期数据;
具体步骤如下:
首先,在命令行中启动postgresql服务;
net start postgresql
postgresql服务启动后,在命令行中登录到postgresql数据库;
psql -h -U
登录到postgresql数据库后,在postgresql选择一个数据库并使用;
\c text
进入到数据库后,在数据库中执行以下命令即查询指定日期的数据;
#查询text库中2021年4月25日的所有记录
select * from text where score_type is null and to_char(insert_time,'yyyy-mm-dd')='2021-04-25';
--结束END--
本文标题: 怎么在postgresl中查询指定日期的数据
本文链接: https://www.lsjlt.com/news/110922.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-04-26
2024-04-26
2024-04-26
2024-04-26
2024-04-26
2024-04-26
2024-04-26
2024-04-26
2024-04-26
2024-04-26
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0