MySQL Forums
Forum List  »  PHP

Re: Multiple selects in one statement
Posted by: Peter Brawley
Date: February 14, 2021 12:14PM

No arrays in MySQL. Just tables.

If your query requirement is to count orders by the contents of the `order` column, write ...

select `order`, count(*)
from name_of_table
group by `order`;

Otherwise, to help, I'll need a fuller description of the requirement.

Options: ReplyQuote


Subject
Written By
Posted
February 14, 2021 07:12AM
Re: Multiple selects in one statement
February 14, 2021 12:14PM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.