thinkphp 查询字段设置别名

文章目录

    字段设置别名方法:

    M('language')->field('name1 as name')->select();
    

    测试环境

    Thinkphp 版本 3.2.3