Oracle: '= ANY()' vs. 'IN ()'

后端 未结 9 1371
难免孤独
难免孤独 2020-12-01 03:37

I just stumbled upon something in ORACLE SQL (not sure if it\'s in others), that I am curious about. I am asking here as a wiki, since it\'s hard to try to search symbols in

9条回答
  •  抹茶落季
    2020-12-01 04:02

    The ANY syntax allows you to write things like

    WHERE x > ANY(a, b, c)
    

    or event

    WHERE x > ANY(SELECT ... FROM ...)
    

    Not sure whether there actually is anyone on the planet who uses ANY (and its brother ALL).

提交回复
热议问题