在房间数据库中也可以进行类似SQL查询[SQL CASE WHEN或IF ELSE IF]。 例如。
Select * from SampleTable
CASE
WHEN CreditRating <= 2 THEN 'NO TRADE'
WHEN CreditRating <= 4 THEN 'POOR'
WHEN CreditRating <= 6 THEN 'AVARAGE'
WHEN CreditRating = 7 THEN 'GOOD'
ELSE 'PERFECT'
END AS RATING