mysql - php missing entries in database -


i have 2 mysql tables shown. want code print 11 cow missing entry in 2 tables.since catdog has word dog similar.

table 1

amount des     11 catdog     11 cow 

table 2

amount des     11 dog 

try this:

select table1.* table2 right join table1 on table1.des concat('%', table2.des, '%') table2.des null; 

sqlfiddle


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

android - MPAndroidChart - How to add Annotations or images to the chart -