摘要:
https://www.itranslater.com/qa/details/2127214981010686976 WITH myconstants (var1, var2) as ( values (5, 'foo') ) -- select var1,var2; SELECT * FROM s 阅读全文
摘要:
self.cr.execute(sql, ) # res = self.cr.fetchmany(1000) while True: res = self.cr.fetchmany(1000) print(len(res),res) if not res: break return res fetc 阅读全文
摘要:
使用exsits 如下: do $$ begin if exists(select * from res_partner where 1!=1) then raise notice 'ererrrr'; end if; end; $$; 还有一种比较蠢的方法:使用count 来获取返回的结果,然后判 阅读全文