为消除其他原因,我从www.sqlite.org/windowfunctions.html复制了代码并粘贴:
CREATE TABLE t0(x INTEGER PRIMARY KEY, y TEXT);
INSERT INTO t0 VALUES (1, 'aaa'), (2, 'ccc'), (3, 'bbb');
SELECT x, y, row_number() OVER (ORDER BY y) AS row_number FROM t0 ORDER BY x;
还是我有同样的错误:
在“(”附近:语法错误:SELECT x,y,row_number()OVER(。
我使用Python 3.7和sqlite 3。 请帮忙!