最近7天如何运行vsql查询

时间:2019-05-01 14:50:42

标签: vsql

如何在最近7天运行此查询,而不必每次都更改时间戳:

SELECT (query_duration_us/1000000)::NUMERIC(10,3) duration_sec, session_id,transaction_id,statement_id,node_name,LEFT(query,100) FROM query_profiles WHERE query_start BETWEEN '2019-04-24 01:00:0' AND '2019-05-01 01:00:00' AND user_name like '%xxx%' ORDER BY duration_sec DESC;

0 个答案:

没有答案