标签: postgresql postgresql-9.6
我想要锁定行,但我还需要使用动态查询来执行此操作,所以我这样做:
... EXECUTE 'PERFORM 1 FROM table_name WHERE id = $1 FOR UPDATE' USING variable; ...
给出错误:syntax error at or near "PERFORM"
syntax error at or near "PERFORM"
那么,在动态查询中无法使用PERFORM吗?
PERFORM