我希望获得最近提交的十个补丁(前 10 个补丁ID desc) 从下面的查询开始,我在10
. 错误是syntax error, unexpected NUM, expecting END_OF_INPUT, or ';'
。在以下查询中可能会导致此错误吗?
SELECT TOP 10 synth.*
FROM (
SELECT p.`id`,
p.`patchName`,
p.`description`,
p.`tfsID`,
p.`codeRelease`,
s.`name`,
d.`deployStatus`,
d.`deployedDate`,
t.`testedStatus`,
t.`testedDate`
FROM `patches` AS p
JOIN `deployed` AS d ON p.`id` = d.`PatchID`
JOIN `servers` AS s ON d.`serverID` = s.`id`
JOIN `tested` AS t ON p.`id` = t.`patchID`
) synth
ORDER BY synth.id DESC