📜  PGSQL 动态表名 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:29.055000             🧑  作者: Mango

代码示例1
EXECUTE format('SELECT count(*) FROM %I '
   'WHERE inserted_by = $1 AND inserted <= $2', tabname)
   INTO c
   USING checked_user, checked_date;