如何在最近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;