我正在尝试使用 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.....
任何人都可以帮助找出我的查询有什么问题吗?
提前致谢!