Groupe MySQL par – PHPGurukul

[ad_1]

Les données peuvent être regroupées par « par groupe » mot-clé.

group by FieldName;

tbllibrary structure de la table et état actuel de la tbllibrary.

select * from tbllibrary;
tbllibrary

Groupez par écrivain et comptez les enregistrements pour chaque écrivain.

select writer, count(*) from tbllibrary group by writer;
Production

Explication

Il y a quatre groupes par «écrivain» dans le tableau «tbllibrary»;

[ad_2]

Telecharger ici

Comments

No comments yet. Why don’t you start the discussion?

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *