【发布时间】:2012-07-21 15:25:48
【问题描述】:
SELECT id, forename, surname, created
FROM name n
WHERE created = (SELECT MAX(created)
FROM name
GROUP BY id
HAVING id = n.id);
schema.yml:
id:
type: integer(4)
fixed: false
unsigned: true
primary: true
autoincrement: true
lcreated:
type: timestamp(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
forname/surname:
type: integer(4)
fixed: false
unsigned: true
primary: false
notnull: true
autoincrement: false
我确实有一个额外的名字和姓氏的表格!
我怎样才能把它转换成学说 1.2?
【问题讨论】:
-
你有 schema.yml 文件吗?你也应该展示它
-
我用 schema.yml 更新了我的帖子
标签: mysql doctrine doctrine-1.2