【发布时间】:2011-01-27 21:56:20
【问题描述】:
是否可以在不使用函数的情况下使用 Postgresql 制作类似于以下内容的内容?
伪sql代码:
select * from sometable where somecol = somevalue AND someothercol IN exec('select something from excludelist')
我的主要目的是建立一个带有预定义查询的表,以便在 where 子句中调用
伪sql代码: select * from sometable where somecol = somevalue AND someothercol IN exec( 从预定义查询中选择查询,其中 id=someid )
【问题讨论】:
标签: postgresql