这样写对吗 ? 不对吧。select a.*,b.* from a left join on a.[id]=b.[id] and ......后面我就不太清楚了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from a left join b on a.id=b.id and a.year=b.DISTINCT(year)这样是不行的。 select * from a left join b on a.id=b.id and a.year in (select DISTINCT(year) from b) 关于3张表的存储过程 简单的SQL问题 请教SQL如何写 修改问题,高手进 如何写更新触发器 如何实现 表中的数据不允许插入删除更改 按关键字查询Products表的信息问题 搜索引擎的思路?? 我需要得到就同一个主题的所有回复的数目、帖子主题和Date,但不能把Date放在group by中。。。。。 不知错在何处? 求简化语句:插入新值时ID自动加一 请大虾指点一下
from a left join b
on a.id=b.id and a.year=b.DISTINCT(year)
这样是不行的。
and a.year in (select DISTINCT(year) from b)