Created
September 5, 2013 06:18
-
-
Save tokibito/6446643 to your computer and use it in GitHub Desktop.
sqlite3 group_concat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sqlite> select k,v from test; | |
a|10 | |
a|20 | |
b|5 | |
b|15 | |
sqlite> select k,group_concat(v) from test group by(k); | |
a|10,20 | |
b|5,15 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment