create table tree(nodeid int not null primary key,pid int,name varchar(10));
insert into tree values(1,0,"一号");
insert into tree values(2,0,"二号");
insert into tree values(3,1,"三号");
insert into tree values(4,3,"四号");请问怎么样把一个节点包含的所有内容复制到另外一个节点下,成为它的子节点。
例如把1节点全部复制到2节点下,变成
nodeid pid name
1      0   一号
2      0   二号
3      1   三号
4      3   四号
5      2   一号
6      5   三号
7      6   四号