От: | StanislavB | ||
Дата: | 24.02.05 16:06 | ||
Оценка: |
сначала создаю вручную таблицу Table с первичным ключем C1 и добавляю её в DataSet.You can use the Fill method multiple times on the same DataTable. If a primary key exists, incoming rows are merged with matching rows that already exist. If no primary key exists, incoming rows are appended to the DataTable.
cmd.CommandText = "select c1,c2 from Table1";
dAdapter.Fill(ds, "Table");
cmd.CommandText = "select c1,c3 from Table2";
dAdapter.Fill(ds, "Table");