mysql alphabetical order

前端 未结 8 1443
臣服心动
臣服心动 2021-02-04 05:34

i am trying to sort mysql data with alphabeticaly like

A | B | C | D

when i click on B this query runs

select name from user order by \

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-04 06:18

    I try to sort data with query it working fine for me please try this:

    select name from user order by name asc 
    

    Also try below query for search record by alphabetically

    SELECT name  FROM `user` WHERE `name` LIKE 'b%' 
    

提交回复
热议问题