我同事写了一条Sql语句,当时没看明白,下面晒出来: SELECT SUM(new_cart) AS ipv, AS iuv FROM tablename WHERE id = 5 ) as t ORDER BY new_cart desc; 数据表结构: CREATE TABLE `tablename` ( `id` ) NOT NULL AUTO_INCREMENT, `new_cart` bigint() DEFAULT NULL, `new_collect` bigint() DEFAU…