mysql alphabetical order

前端 未结 8 1437
臣服心动
臣服心动 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:19

    You do not need to user where clause while ordering the data alphabetically. here is my code

    SELECT * FROM tbl_name ORDER BY field_name
    

    that's it. It return the data in alphabetical order ie; From A to Z. :)

提交回复
热议问题