You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently having problem with the row_number() window function (got syntax error, the error message is pretty identical to the issue i have read on prisma here). I'm wondering if mysql2 supports this functionality? If so, could you provide an example of how I might modify the following SQL statement to work with mysql2.
Thank you in advance! c:
SELECT ROW_NUMBER() OVER (
PARTITION BY column_name ORDER BY column_name) AS rn, column_name
FROM table_name;
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm currently having problem with the row_number() window function (got syntax error, the error message is pretty identical to the issue i have read on prisma here). I'm wondering if mysql2 supports this functionality? If so, could you provide an example of how I might modify the following SQL statement to work with mysql2.
Thank you in advance! c:
Beta Was this translation helpful? Give feedback.
All reactions