select name from A where code like (select code from B where orgid ='1')||'%'
ORACLE的like后面跟一个子查询
最新推荐文章于 2025-01-10 22:20:34 发布
此篇博客介绍如何通过SQL查询A表,利用B表中特定orgid(1)的code作为条件,进行模糊匹配操作(%)。
此篇博客介绍如何通过SQL查询A表,利用B表中特定orgid(1)的code作为条件,进行模糊匹配操作(%)。
select name from A where code like (select code from B where orgid ='1')||'%'
4191
764
2707

被折叠的 条评论
为什么被折叠?
