【发布时间】:2020-11-18 08:30:32
【问题描述】:
我正在实现一个搜索屏幕,并且有一些可选参数即将出现。在 oracle 中,我曾经为 Spanner 不支持的可选参数提供 true 或 1=1 条件。 我们如何在 Spanner SQL 中实现同样的功能?
Sample Query
select mark.* from
abc mark join xyz mchhier on mark.X=mchhier.X where
--Mandatory
mark.X=123 and
--Below Params are Optional
mchhier.G in (null) and mchhier.C (null) and mchhier.D in (null)
【问题讨论】: