count(1), count(*), orderby1,2,3,4 difference

count(1), count(*), orderby1,2,3,4 difference

Count(1), count(*), order by 1,2,3,4 difference the 1 make NULL data; the the 2 directly use the column name to COUNT to see the result the the 3 Use 1 2 3 4 5 * to COUNT to look at the results and find that they are all the same data and are equal to all functions. www.2cto.com the 4 ORDER BY 1 does use the first column to sort the the 5 ORDER BY 2 See if the result is correct the the result: the count(1)=count(2)=count(3)=count(*); the count(provcode)count(areacode)count(statedate)count(*); the order by 1order by 2oreder by 3; the order by 1=order by provcode the Additional results: the the the Author ZengMuAnSha

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索