How to search for existence of record in one table from another using php and mysql -
I use php and mysql I have two tables,
There are about 3000 records in Table A and approximately 27,000 records in Table B. I would like to know that every record in Table A is present in Table B, if not, which are not present in Record B, then do not print. I tried to retrieve the record in Table A and table A, but I could not succeed. And it took a very long time to end the query. And I have searched the whole but nothing like this could be found. Please someone can help me Thank you! The following questions can return all idno, which are not in these table B Table A (ID: auto-increment, idano)
Table B (ID: auto-increments, Sido) .
From the
SELECT * table where `idno` is not (select 'Select from the table')
Comments
Post a Comment