【发布时间】:2015-01-17 15:05:36
【问题描述】:
我想直接从 pgAdmin 编辑器 UI 执行一些 pgScript。
FOR i IN 1..10 LOOP
PRINT i; -- i will take on the values 1,2,3,4,5,6,7,8,9,10 within the loop
END LOOP;
但我总是得到
[ERROR ] 1.0: syntax error, unexpected character
我也试过用 do$$...$$ 包装代码,但没有解决问题。
【问题讨论】:
标签: postgresql plpgsql pgadmin