最大值:select max(num) from table 第二大值:select max(num) from tablewhere num not in(select max(num) from table) 第三大值:select max(num) from tablewhere num no Read More
posted @ 2019-03-19 15:03 每每00 Views(11460) Comments(0) Diggs(0) Edit
1.count()函数是用来统计表中记录的一个函数,返回匹配条件的行数。 2.count()语法: (1)count(*) 包括所有列,返回表中的记录数,相当于统计表的行数,在统计结果的时候,不会忽略列值为NULL的记录。 (2)count(1) 忽略所有列,1表示一个固定值,也可以用count(2 Read More
posted @ 2019-03-19 14:38 每每00 Views(3208) Comments(0) Diggs(0) Edit