Home  >  Article  >  Database  >  从Table1插记录到Table2,Field1不重复

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

WBOY
WBOYOriginal
2016-06-07 15:54:461147browse

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'')
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Hive.GROUPINGSETS的“陷阱”Next article:乱码问题