MySQL Left join with Like condition like this -


select user_ip  affi left join cc on affi.user_ip on  "%cc.auth_ip%"  

now ip field in cc table looks : 11.11.11.11:2312 , on affi table looks 11.11.11.11 this.

any ideas? :) in advance

try this

select     user_ip     affi left join     cc on     affi.user_ip concat(cc.auth_ip,'%') 

you try use substr


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -