17 lines
323 B
SQL
17 lines
323 B
SQL
/**
|
|
** Imports data from the web graph dataset.
|
|
** Creates two relations n(u) and e(u,v) storing the nodes and edges, respectively.
|
|
*/
|
|
|
|
drop table n;
|
|
drop table e;
|
|
|
|
create table n(u int);
|
|
create table e(u int, v int);
|
|
|
|
copy e from './www.dat' with delimiter as ' ';
|
|
|
|
insert into n
|
|
select u from e
|
|
union
|
|
select v from e; |