21,891
社区成员
发帖
与我相关
我的任务
分享+----------+---------------------+------+
| username | usertime | type |
+----------+---------------------+------+
| | 2009-10-15 09:48:12 | 0 |
| 456 | 2009-10-14 20:30:07 | 1 |
| 789 | 2009-10-14 20:30:32 | 2 |
| 99 | 2009-10-15 10:36:55 | 1 |
| 333 | 2009-10-15 10:39:38 | 1 |
| 888 | 2009-10-15 10:34:11 | 0 |
+----------+---------------------+------+
mysql> select * from t;
+------+--------+
| id | pw_num |
+------+--------+
| 1 | 0 |
| 2 | 11 |
| 3 | 8 |
| 4 | 3 |
+------+--------+
4 rows in set (0.00 sec)
mysql> select group_concat(pw_num) from t where pw_num>5;
+----------------------+
| group_concat(pw_num) |
+----------------------+
| 11,8 |
+----------------------+
1 row in set (0.00 sec)
select * from table where pw_num>5
select * from table where pw_num>5;