1
的結果我正在使用PostgreSQL。
我有數據表所示:總結表
Parent_id Count Read
--------- ------ ------
52405 2 False
52405 1 True
現在我想總結的數據等:
Parent_id Count Read
--------- ------ ------
52405 3 False
Count
將記錄的總和。
Read
將是邏輯和操作。
這DBMS'es支持呢?從來沒有聽說過它,谷歌不 – zerkms 2010-09-28 06:35:21
PostgreSQL:http://www.postgresql.org/docs/current/interactive/functions-aggregate.html現在我看到這個話題也被標記爲其他dbms的...... – 2010-09-28 06:38:58