开发者

Different outputs from mysql

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜