【发布时间】:2014-05-06 19:33:38
【问题描述】:
特别是 Python 和 Web2py 的新手。难以转换为 DAL 这个:
select t.id, t.gp_pro_id, t.gp_historicdate
from course t where t.gp_historicdate =
(select MAX(a.gp_historicdate)
from course a where a.id = t.id)
任何帮助将不胜感激。我只是不想使用executesql,但如果无法翻译,我会使用。
谢谢!
【问题讨论】:
-
能否详细介绍
course表的结构?
标签: sql select web2py data-access-layer