数据表选择方法ORDER BY子句 [英] Datatable select method ORDER BY clause

查看:94
本文介绍了数据表选择方法ORDER BY子句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用select方法对数据表中的行进行排序. 我知道我可以说

I 'm trying to sort the rows in my datatable using select method. I know that i can say

datatable.select("col1='test'")

实际上是where子句,将返回满足条件的n行.

which in effect is a where clause and will return n rows that satisfy the condition.

我想知道我可以做以下事情

I was wondering can i do the following

datatable.select("ORDER BY col1") --- col1是hte列的名称

datatable.select("ORDER BY col1") ---col1 is the name of hte column

我尝试了datatable.defaultview.sort()但没有成功

有关如何解决此问题的任何想法. 谢谢

Any ideas on how to get around this issue. thanks

推荐答案

您是否尝试过使用 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆