摘要: 使用exsits 如下: do $$ begin if exists(select * from res_partner where 1!=1) then raise notice 'ererrrr'; end if; end; $$; 还有一种比较蠢的方法:使用count 来获取返回的结果,然后判 阅读全文
posted @ 2020-11-12 09:34 那时一个人 阅读(2797) 评论(0) 推荐(0)