支付宝
微信
扫描二维码打赏
更多详情(暂无)

Datatable筛选数据

DataRow[] drArr = dt.Select("C1=’abc’");//查询
还可以这样操作:

DataRow[] drArr = dt.Select("C1 LIKE ’abc%’");//模糊查询 
DataRow[] drArr = dt.Select("’abc’ LIKE C1 + ’%’", "C2 DESC");//另一种模糊查询的方法 
DataRow[] drArr = dt.Select("C1=’abc’", "C2 DESC");//排序
posted @ 2017-09-27 09:49  华临天下  阅读(175)  评论(0编辑  收藏  举报