从SQL表的一行中选择一个元素

时间:2019-06-19 19:07:15

标签: postgresql

如何从以下SQL表中提取“ 2019-06-19 13:30:00-04”以在python文件中用作变量?

SELECT max(begin_ts) FROM ecn_stats_2019_06_19 WHERE name = 'raw_msg_count' and process_name LIKE 'matching_%_gw';

          max
------------------------
 2019-06-19 13:30:00-04
(1 row)

0 个答案:

没有答案
相关问题