如何在参数设置条件的情况下编写可为空的列 - Google Spanner

时间:2017-11-22 11:44:44

标签: google-cloud-platform google-cloud-spanner

如果我有桌子

  

商品可以为空的 receivedStockId

receivedStockId INT64

我不能写下面的select语句:

select * from Goods where receivedStockId=@receivedStockId

我目前的解决方案是:

select * from Goods where receivedStockId in UNNEST([@receivedStockId])

有没有更好的解决方案?

0 个答案:

没有答案