0
我想打印从查询中获得的所有表格。但是,我的代码只显示该函数的名称。Postgres:如何在循环中打印值
# create or replace function remove_scene()
# RETURNS void AS $$
# DECLARE
# row record;
# BEGIN
# FOR row IN
# select table_name from information_schema.tables WHERE table_schema = 'public' AND table_name ~ 'measurement[0-9]'
# LOOP
# RAISE NOTICE '** %', quote_ident(row.table_name);
# END LOOP;
# END;
# $$ LANGUAGE plpgsql;
CREATE FUNCTION
# select remove_scene();
remove_scene
--------------
(1 row)
#