如何在数据集中加载两个以上的表 [英] how to loaded more than two tables in dataset
本文介绍了如何在数据集中加载两个以上的表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
要在数据集中加载两个以上表的代码
the code to loaded more than two tables in dataset
推荐答案
Dataset ds=new dataset();
ds= //code to retrieve one table;
ds.tables[0].tablename="tablename";
ds= //code to retrieve second table;
当您在数据集中不提供表名时,不同表的结果将合并并显示为单个表;
When you dont give table names in dataset then the result of different tables will get combined and appear as single table;
这篇关于如何在数据集中加载两个以上的表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文