2012-09-27 92 views

回答

0

INSERT INTO newtable(home, person) SELECT DISTINCT home, person FROM sourcetable

1

與該ID自動遞增列創建新表。

然後插入到表中,使用查詢如:

insert into newTable(home, person) 
    select distinct home, person 
    from oldTable 
相關問題