mysql select·Î ¿©·¯ Á¶°ÇÀ» Çѹø¿¡ °Ë»ö |
|
|
 |
14³â Àü |
lecture_booktype °¢ Ç׸ñ º°·Î ´©Àû Çհ踦 ±¸ÇÏ°íÀÚ ÇÕ´Ï´Ù.
lecture_booktypeÀÌ 1ÀÎ°Í x°³, 2ÀÎ°Í y°³ ÀÌ·±½ÄÀ¸·Î ÇÏ·Á°í Çϴµ¥¿ä.
SELECT count(`id`) as cnt1 FROM `cukin_lecture_evaluation` WHERE `lecture_booktype`= '1';
SELECT count(`id`) as cnt2 FROM `cukin_lecture_evaluation` WHERE `lecture_booktype`= '2';
¸¦ ÀÌ·¸°Ô
select distinct lecture_booktype, count(lecture_booktype) as cnt from cukin_lecture_evaluation group by ecture_booktype |
|
̵̧ : 294 |
̵̧
¸ñ·Ï
|
|