帮我看看看个SQL那里错了

sun8087 2017-03-19 10:22:29
功能主要是得到product 不重复记录
select childid ,id from product where ProductDown=0 and exists ( select ProductID from ProInfo where UserID='280900' and ProInfoType='factory' and product.id=ProInfo.ProductID ) and (id in(Select max(id) FROM product where group by childid))
...全文
351 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Freely2006 2017-03-24
  • 打赏
  • 举报
回复
group by 前面不需要where
shoppo0505 2017-03-20
  • 打赏
  • 举报
回复
select distinct ....

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧