What does it mean by select 1 from table?

前端 未结 15 1840
南方客
南方客 2020-12-07 07:32

I have seen many queries with something as follows.

Select 1  
From table

What does this 1 mean, how will it be executed and,

15条回答
  •  伪装坚强ぢ
    2020-12-07 07:41

    This means that You want a value "1" as output or Most of the time used as Inner Queries because for some reason you want to calculate the outer queries based on the result of inner queries.. not all the time you use 1 but you have some specific values...

    This will statically gives you output as value 1.

提交回复
热议问题