Rel rC = openRelation("Customer");
Rel rE = openRelation("Employee");
for (int i = 0; i < nPages(rC); i++) {
PageId pid1 = makePageId(db,rC,i);
Page p1 = request_page(pid1);
for (int j = 0; j < nPages(rE); j++) {
PageId pid2 = makePageId(db,rE,j);
Page p2 = request_page(pid2);
release_page(pid2);
}
release_page(pid1);
}
|