我在以下 SQL 脚本中收到执行错误:
SELECT TOP 1 PERCENT
a.accode, a.voucherdate, a.credit, a.Debit,
SUM(a.Debit) OVER (ORDER BY [a.accode],[a.voucherdate]) AS rdr
FROM
VoucherMain AS a
ORDER BY
a.accode, a.voucherdate
错误信息
'order' 附近的语法不正确
谁能告诉我我的语法有什么问题?