SQLite syntax for “ALL”

后端 未结 3 1839
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-16 14:40

Is there a way to do the following in SQLite?

select name
from   table
where  number >= ALL (

        
3条回答
  •  一生所求
    2020-12-16 14:59

    I doubt that there is an ALL() operator in SQLite. However, you can write something that is functionally equivalent using MAX() and MIN().

    SELECT name 
    FROM table 
    WHERE number >= (SELECT MAX(another_number) FROM another_table WHERE ...)
    

提交回复
热议问题