学习空间

导航

2005年9月13日 #

如何把一个DataTable中的某列通过表关系加到另外一个DataTable中

摘要: 在DataSet中是无法使用Select语句从多个表中自由选择字段组成新的视图的,只能利用DataTable间的关系把一个DataTable中的某列增加到另外一个DataTable中。原理:1.在DataTable间建立关系2.把一个DataTable中的某列增加到另外一个DataTable中3.如果DataTable不再同一个DataSet中需要合并DataSet实现代码如下:usingSyst... 阅读全文

posted @ 2005-09-13 09:24 老实先生 阅读(2030) 评论(0) 推荐(0) 编辑