SELECT (SELECT SUBSTRING_INDEX(GROUP_CONCAT(id
ORDER BY process_version
DESC), ',', 2) FROM process
WHERE process_name
= parent
.process_name
) AS ids
FROM process
AS parent WHERE 1 GROUP BY process_name
输出应为20.由于print语句中的语法错误,我无法得到答案。
答案 0 :(得分:2)
print
是一个函数,这意味着你需要用括号调用它:
print(naïve(4,5))