今天看到 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 ;