Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/57.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Navicat MySQL中的NTILE函数错误_Mysql_Navicat - Fatal编程技术网

Navicat MySQL中的NTILE函数错误

Navicat MySQL中的NTILE函数错误,mysql,navicat,Mysql,Navicat,我正在尝试使用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 serv

我正在尝试使用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.....
谁能帮我找出我的问题出在哪里


提前谢谢

NTILE就是所谓的窗口函数()


MySQL没有窗口函数:

MySQL还没有实现
NTILE
。您如何在MySQL中选择集合的3个四分位数?