会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
那人,那事,那代码
走走停停,终该是留点什么
博客园
首页
新随笔
联系
管理
订阅
2020年11月12日
postgres 判断查询结果集为空,判断查出出来的记录为零
摘要: 使用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)
公告