do $$
declare i int default 0;
begin
select count(1) into i from fab_flow_config_main ffcm ;
if i>0 then
for i in 1..5 loop
raise notice '%', i;
i=5;
end loop;
end if;
end;
$$
1.打印输出前面需要加上’%’
2.行代码后面需要加上符号[;]