select distinct substr(mm.name,0,1) as fname from t_mobile_model mm where mm.bid = 1 order by fname
sql查询字段的首字符,重复字符只显示一个
最新推荐文章于 2021-11-13 15:43:08 发布
本文介绍了一种使用SQL进行数据查询的方法,具体为通过select distinct和substr函数组合来按首字母分组查询mobile model表中的数据,并按照分组结果进行排序。
213

被折叠的 条评论
为什么被折叠?



