mysql - Select * from table where id = ? and order by priority -


i have database fields:

  • id (int)
  • name (text)
  • priority (int)

i want show values database id = (e.g) 13 , sort them priority. e.g: field id 13 , priority 1 first other field priority 2.

how can it?

select id,name,priority table_name id=13 order priority asc; 

Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Using jquery append to add option values into a select element not working -

javascript - Restarting Supervisor and effect on FlaskSocketIO -