首頁  >  文章  >  資料庫  >  从Table1插记录到Table2,Field1不重复

从Table1插记录到Table2,Field1不重复

WBOY
WBOY原創
2016-06-07 15:54:461144瀏覽

insert into Table2(field1,field2,field3,field4,field5)(select field1,field2,field3,field4,field5 from Table1 where field1 not in (select field1 from Table2) and field1 is not null and field'')

insert into Table2(field1,field2,field3,field4,field5)(select field1,field2,field3,field4,field5 from Table1 where field1 not in (select field1 from Table2) and field1 is not null and field'')
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn