请问SQL中in的用法,可以in后面跟表格吗,in 一个虚拟表的内容
答案:2 悬赏:40
解决时间 2021-03-11 21:48
- 提问者网友:挣扎重来
- 2021-03-11 17:25
请问SQL中in的用法,可以in后面跟表格吗,in 一个虚拟表的内容,比如 select from table where id in ( select * from table2 where name=xxx )
最佳答案
- 二级知识专家网友:woshuo
- 2021-03-11 18:12
不能用* 啊。
in 只能in列, where id in ( select id(条件中id对应列) from table2 where name=xxx )
in 只能in列, where id in ( select id(条件中id对应列) from table2 where name=xxx )
全部回答
- 1楼网友:萌萌哒小可爱
- 2021-03-11 19:27
应该不能吧。
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯