今天看到 postgresql 一种比较个性的 sql 写法,如下:

select em.* 
from ( VALUES (4,'INSERT'::text), (8,'DELETE'::text), (16,'UPDATE'::text)) em(num, text)
where 1=1
  and em.num = 4
;

相关文章:

  • 2021-10-30
  • 2021-11-29
  • 2021-08-26
  • 2021-11-12
  • 2022-12-23
  • 2021-12-21
  • 2021-09-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2021-08-08
  • 2021-11-10
  • 2022-12-23
  • 2021-09-17
相关资源
相似解决方案