Sorting/ordering in MySQL

前端 未结 3 1929
一生所求
一生所求 2021-01-14 05:26

I\'m having a little problem with trying to sort the contents of a table programs by the column prog_id which holds the id of each program in the f

3条回答
  •  春和景丽
    2021-01-14 05:59

    You could use 3 fields e.g. major_version, minor_version, build_number, make them integer fields and use mysqls buildin "ORDER BY major_version,minor_version,build_number" which will order the fields in the desired way.

提交回复
热议问题