id product_cat_id product_type_id ordering
1 1 1 1
2 2 3 1
3 1 2 1
4 1 1 2
5 3 1 1
我想按照product_cat_id的顺序,然后从订购栏中输入product_type_id。输出应该是这样的:sql订购colums查询
id product_cat_id product_type_id ordering
1 1 1 1
4 1 1 2
3 1 2 1
2 2 3 1
5 3 1 1
这真是基本的sql。你花了超过2秒研究这个? – regality
我做了,但我想不出如何分阶段我的谷歌搜索,这就是为什么我不得不举一个堆栈溢出的例子。这个问题真的值得大拇指吗? – milan