我的MySQL版本是5.6。
我有一个MySQL查询,我得到了错误,需要帮助来理解我做错了什么。
以下是查询:
select images.thumbnail16x9_file,
images.square_file,
RANK() OVER (ORDER BY images.timestamp desc) rank
from images
where images.media_id = 875021;这是错误消息:
您的SQL语法有错误;请检查与您的MySQL服务器版本对应的手册,以获得正确的语法以使用near '(ORDER BY images.timestamp )级别 来自第3行images.media‘的图像
如果我这么做了,我会得到结果:
select images.thumbnail16x9_file,
images.square_file
from images
where images.media_id = 875021 ;有洞察力吗?
https://stackoverflow.com/questions/56262223
复制相似问题