http://docs.memsql.com/5.0/concepts/window_functions/
我检查了上面链接的文档,并提出了几个可能的 SQL 函数,但其中任何一个都没有运气。这些才一点点:
select row_number() from test;
select row_number() over (order by _id) from test;
select row_number() over {order by _id} from test;
select row_number() over order by _id from test;
select row_number() over (order by _id) as row_num from test;
select row_number over order by _id as row_num from test;
都给我 ERROR 1064 (42000): You have a error in your SQL syntax;
MemSQL 版本是 5.5.8
当然select _id from test;
工作正常?
那么使用的确切语法是什么?还是 MemSQL 中实际上没有这样的东西?