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,

Table A (ID: auto-increment, idano) Table B (ID: auto-increments, Sido) .

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

 From the  SELECT * table where `idno` is not (select 'Select from the table')   



Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -