MySQL Forums
Forum List  »  MySQL Workbench

Re: OVER (PARTITION BY) : Not Working
Posted by: Vignesh Kumar
Date: October 07, 2020 08:18PM

Hi,

I am also facing the same issue. I am using MYSQL workbench 8.0. I am trying to use partition by clasue in a query from a view or table i am getting the same issue as mentioned above.

my Query:

select row_number over ( Partition by col1,col2 order by col3) as Row_num, *
from table/view;

I am getting the following error: Error Code: 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 '( PARTITION BY col1, col2 ORDER BY col3) as row_num' at line 1

Can someone let me know what is the issue? I am new to Mysql.

Options: ReplyQuote


Subject
Views
Written By
Posted
5103
September 14, 2020 04:08PM
1493
September 14, 2020 04:11PM
1319
September 14, 2020 04:49PM
Re: OVER (PARTITION BY) : Not Working
5229
October 07, 2020 08:18PM
1218
October 08, 2020 11:22AM
964
October 08, 2020 11:36AM
779
October 09, 2020 09:11AM
814
October 09, 2020 11:59AM
1391
October 08, 2020 09:25AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.