我尝试使用execute block将两个值插入到数据库中,然后返回插入id。execute block returns (id integer) insert into test (name) values ('test1') returning id into但是如果我在那里调用,插入操作就是持久化的,我可以得到返回值。
这段代码应该删除一个相册,但我不知道为什么它仍然不能工作 declare variable al_eliminare integer; select count(album.id) from album where id = :id_album if(al_eliminare = 0) suspend;
end