码迷,mamicode.com
首页 > 数据库 > 详细

mysql 关键????

时间:2018-05-06 13:37:30      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:bsp   student   article   logs   nbsp   art   http   sele   sel   

http://www.cnblogs.com/wupeiqi/articles/5748496.html   练习题

21 题目着重 看看。。

 

select  其实相当于 Python 里的print  

 

mysql> select (select count(1 ) from student where gender = ‘男‘) as ‘男‘, (select count(1 ) from student where gender = ‘女‘) as ‘女‘;

+------+------+
| 男 | 女 |
+------+------+
| 10 | 6 |
+------+------+

 

mysql 关键????

标签:bsp   student   article   logs   nbsp   art   http   sele   sel   

原文地址:https://www.cnblogs.com/th-lyc/p/8997835.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!