开发者

Different outputs from mysql

开发者 https://www.devze.com 2023-02-09 07:15 出处:网络
I have two sql query outputs from a table , with orders.. One sql order directly from the table and the data is showing right, from last to first.

I have two sql query outputs from a table , with orders..

One sql order directly from the table and the data is showing right, from last to first. But when i try the same way to show up the data but, this time I use a post met开发者_Python百科hod, so when click submit that data is being shown, but this time the showup begin from the first to the last query . Why is that.The mysql is simple just .

select * from smt order by smtorde


You could also append the way you want the MySQL Sort ordered with ASC or DESC

// Ascending 
select * from smt order by smtorde ASC

// Descending 
select * from smt order by smtorde DESC
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号