大家帮帮忙,在同一个表连着查两次,怎么写!在线等...

QCB181 2004-04-07 06:42:50
sql=select * from product where classID in (select ID from class where upClassID = (select ID from class and upClassID="&sortID2&"))"
...全文
55 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
QCB181 2004-04-07
  • 打赏
  • 举报
回复
sql=select * from product where classID in (select ID from class where upClassID = (select ID from class and upClassID="&sortID1&"))

是我自己写错了,现在可以了!


gechaosa 2004-04-07
  • 打赏
  • 举报
回复
select * from product where classID in (select ID from class where upClassID = id and )upClassID="&sortID2&"

gechaosa 2004-04-07
  • 打赏
  • 举报
回复
select * from product where classID in (select ID from class where upClassID = id and upClassID="&sortID2&"

gechaosa 2004-04-07
  • 打赏
  • 举报
回复
select * from product where classID in (select ID from class where upClassID = (select ID from class) and upClassID="&sortID2&"

34,873

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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