select 1 from table; 与 select ABC(目的表集合中的任意一行)from table; 与 select from table;
从作用上来说是没有差别的,都是查看是否有记录,一般是作条件查询用的。
select 1 from table中的1是一常量(可以为任意数值),查到的所有行的值都是它,
但从效率上来说,1>ABC>,因为不用查字典表。
https://blog.youkuaiyun.com/bibibrave/article/details/82961201