Dynamically execute query using the output of another query

后端 未结 3 516
醉话见心
醉话见心 2021-01-21 18:13

I have a function called generate_table, that takes 2 input parameters (rundate::date and branch::varchar)

Now I am trying to work on a second

3条回答
  •  遥遥无期
    2021-01-21 18:26

    select generate_table(max(rundate) as rundate, branch)
    from t_index_of_imported_files
    group by branch
    

提交回复
热议问题