How to get a result from dynamic SQL in Postgres?

前端 未结 2 1080
野性不改
野性不改 2021-01-19 14:54

Raw Table for which rule are stored in one table named md_formula , which are used to map in destination table

Drop/Create/Insert for raw_dbs_transacti

2条回答
  •  感情败类
    2021-01-19 15:08

    For a dynamic query you need to use the 'execute' command.

    EXECUTE dynamic-query-string INTO target-variable...
    

    The manual page for this is here: http://www.postgresql.org/docs/current/static/plpgsql-statements.html#PLPGSQL-STATEMENTS-EXECUTING-DYN

    HTH

提交回复
热议问题