【发布时间】:2014-04-03 00:39:58
【问题描述】:
我正在尝试使用 NTILE 函数在使用 Navicat for MySQL 的数据集中创建十分位数。我的查询是:
select NTILE(10) over (order by 'amount') decile, *
from dataframe d
order by 'amount';
我得到了错误
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(order by.....
谁能帮助找出我的查询出了什么问题?
提前致谢!
【问题讨论】:
-
MySql 还没有实现
NTILE。