文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
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;

相关阅读 更多 +
排行榜 更多 +
探聊交友

探聊交友

聊天通讯 下载
天骄通

天骄通

旅游住宿 下载
奥的斯

奥的斯

商务办公 下载