mysql>
set
profiling=1;
mysql>
select
distinct
(num)
from
test_test;
mysql>
select
num
from
test_test
group
by
num;
mysql> show profiles;
+
| Query_ID | Duration | Query |
+
| 1 | 0.00072550 |
select
distinct
(num)
from
test_test |
| 2 | 0.00071650 |
select
num
from
test_test
group
by
num |
+