这是我正在尝试的简化 SQL 语句:
SELECT * FROM cows WHERE lastMilkedDate =
(SELECT milkDate from Lactaction order by
milkDate desc FETCH NEXT ROW ONLY)
这将导致此错误:
Error code -1, SQL state 42X01: Syntax error:
Encountered "FETCH" at line 1, column 148.
我也尝试过 FETCH NEXT 1 ROWS,结果相同。
谢谢