想要实现在 title,sign   2个字段中去进行搜索,返回2个字段的值,并按照开头字母进行排序,返回10条,该怎么写SQL语句?

解决方案 »

  1.   

    select  title,sign from table A order by title asc,sign asc limit 10
      

  2.   

    你好,可能是我描述有问题,我重新说下。
    我想要返回的数据为一列,有5个title有5个sign.
    目前是2列:
      

  3.   

    select group_concat(a.title) title,group_concat(a.sign) as sign from (select title,sign from table where title=xxx or sign=xxx order by title asc limit 10) as a;