sql 问题

Zoogreen Zoogreen 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
假设有两个表table1,table2两个表中都有goodsname字段 ,table2中有 checkman 字段
要求找table1的所有数据 , table1中的 goodsname 要等于 从table2中取得的 goodsname , 先从 table2中取得数据 select goodsname from table2 where checkman='a', 只 这个数据集中有的goodsname ,在table中都要找到 说了半天就是连表查询啦 ,我写了:
select * from table1 where goodsname in select goodsname from table2 and checkman='a' 这样出错???
...全文

相关推荐

评论 2
收藏 已收藏
分享
返回顶部
Zoogreen
非技术区 831 成员 53,568 内容