小编Mas*_*ter的帖子

1这个订单是1?

我在MySQL中有一个问题,做得对.但书籍代码略有不同.

书:

use tennis;
select playerno, datediff(coalesce(end_date, current_date), 
begin_date) as Difference, position
from committee_members
where datediff(coalesce(end_date, current_date), begin_date) > 500
order by 1;
Run Code Online (Sandbox Code Playgroud)

1这个订单是什么?

我的代码也有效,几乎相同,除了:

select playerno, datediff(coalesce(end_date, current_date) AS Data,
order by Data;
Run Code Online (Sandbox Code Playgroud)

mysql sql-order-by

13
推荐指数
2
解决办法
1万
查看次数

数据库透视 - 目的是什么?

为什么有人想将列转换为行(即旋转)?它解决了哪个问题?

我找到了一些链接,但没有得到满意的答案.

http://codeghar.wordpress.com/2007/11/03/pivot-tables/

http://msdn.microsoft.com/en-us/library/ms177410%28SQL.105%29.aspx

database pivot

10
推荐指数
2
解决办法
1万
查看次数

标签 统计

database ×1

mysql ×1

pivot ×1

sql-order-by ×1