【发布时间】:2015-01-07 15:30:01
【问题描述】:
我在 mysql 数据库中有以下架构
Field | Type | Null | Key | Default | Extra
------------+---------+----------+-------+-----------+---------
answerId int(11) NO PRI NULL
answerDate datetime YES NULL
creationDate datetime YES NULL
questionId int(11) NO PRI 0
url text YES NULL
description text YES NULL
此表存储问题和答案的关系,其中一个问题与一个或多个答案相关。我想做的是选择答案超过 5 个的问题。能找回来吗?
【问题讨论】:
-
您如何将问题与其在数据库中的答案联系起来?
-
提示:
group by,having.
标签: mysql sql select relational-database