Home >Backend Development >PHP Tutorial > 求教写一句sql,sql大牛请进!该如何解决

求教写一句sql,sql大牛请进!该如何解决

WBOY
WBOYOriginal
2016-06-13 12:36:18773browse

求教写一句sql,sql大牛请进!!

以某字段的第一个字符分组,列出不同的结果


如:
        id             name
        1              张三
        2              李四
        3              黄五
        4              张一
        5              李六
        6              陈七

查询结果:张,李,黄,陈。

sql mysql php
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn