文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>sql语句用like关联两个表中的字段

sql语句用like关联两个表中的字段

时间:2011-06-13  来源:Cbxmm

oracle:

select count(*) from t1,t2 where t1.col1 like '%' ||t2.col||'%';(任意位置匹配) 

同理可有只匹配前或后的

select count(*) from t1,t2 where t1.col1 like t2.col||'%';

select count(*) from t1,t2 where t1.col1 like '%'||t2.col;

相关阅读 更多 +
排行榜 更多 +
shortcutmaker

shortcutmaker

系统软件 下载
永辉生活超市

永辉生活超市

生活实用 下载
poipiku

poipiku

系统软件 下载