是否可以将某些值从特定行导出到 Datagrip 中的 CSV

Is it possible to export certain values from specific rows to a CSV in Datagrip

我想根据用户 ID 和创建行的时间将某些行导出到 CSV。例如,如果 user_id == "Bob" 和 creation_time 少于两周,我想抓取并导出到 CSV clock_in_time 和 clock_out_time前。我希望在 Datagrip 中有一种内置方式,但我对其他选项持开放态度。感谢您的帮助!

  1. 编写检索所需记录的查询。在你的情况下,它可以像
SELECTclock_in_time, clock_out_time 
FROM table
WHERE user_id = "Bob"
  1. 通过结果工具栏上的“导出”按钮将结果导出到 CSV: