标签: regex sqlite
yourtextfield.resignFirstResponder()
如何将id 1001 2001 2002 3001 3002 3003 列的第一个数字id分组?我的意思是下面的东西:
id 1001 2001 2002 3001 3002 3003
id
1, 2, 3
答案 0 :(得分:1)
试试这个:
SELECT Count(*) FROM (SELECT Substr(id, 1, 1) AS myGroup FROM table1) a GROUP BY mygroup