mysql - SQL join result fulltext -


i have 2 tables, call table1 , table2. table1 has 2 fields, id , auth, table2 has 2 fields, id , keywords. note id of table1 , table2 match. query:

select id, match(keywords) against('example') table2 match(keywords) against('example') 

how going exclude results auth (table1) of same id not 1?

select id, match(keywords) against('example')    table2 t2  match(keywords) against('example')    , not exists (select 1 table1 t1 t1.id = t2.id , t1.auth != 1) 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -