【问题标题】:How to find delete command executed for a specific schema in redshift如何在redshift中查找为特定模式执行的删除命令
【发布时间】:2016-02-22 12:09:10
【问题描述】:

如果有一种红移形式的方法可以帮助我获取在特定模式上执行的删除命令的历史记录,那么 1 可以帮助我吗 我曾尝试查看红移集群中的查询选项卡,并且还遍历了 stl_delete 表但没有运气,

我想知道查询、执行时间、用户和执行日期

有没有其他方法可以验证是否正在为 redshift 中的特定模式执行任何删除命令

提前致谢

【问题讨论】:

    标签: amazon-redshift


    【解决方案1】:
    select userid, starttime, endtime, querytxt 
    from stl_query
    where querytxt like 'delete %from <schema_name>.%'
    

    documentation

    【讨论】:

      猜你喜欢
      • 2017-11-09
      • 2016-12-08
      • 2014-09-23
      • 2021-04-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-05
      相关资源
      最近更新 更多