CREATE TABLE BB (ID VARCHAR(100),
NAME VARCHAR(100),
ID1 VARCHAR(100))
设ID,ID1为键
INSERT INTO BB values (1,'爷爷',1)
INSERT INTO BB values (2,'外公',2)
INSERT INTO BB values (1,'爸爸',3)
INSERT INTO BB values (2,'妈妈',4)
INSERT INTO BB values (1,'叔叔',5)
INSERT INTO BB values (2,'大姨',6)
select * from bb where id=1