I want to know how to make a prepared statement query that SELECTS all rec_host rows and counts all the ones that equal 1, and all the ones that equal 0, so that I can print them out separately.
I want to know how to make a prepared statement query that SELECTS all
Share
Do you want something like this?
Try it! 🙂
Explanation:
rec_hostis equal to0. If it is equal, the value will be0, otherwise1.COUNTwill count all the rows which are in each group.