【发布时间】:2012-08-07 11:04:36
【问题描述】:
我做到了
create table tmp select min(xxx_id) from xxx group by y with count(*)>1;
现在我需要将这个 tmp 表与另一个表连接起来,但是如何引用 tmp 表中唯一的列?
select * from table2 s, tmp t where s.xxx_id=t.xxx_id?显然行不通,应该用什么替换 t.xxx_id?
【问题讨论】:
标签: mysql