MySqlmysql insert into where not existsINSERT INTO [to] (name) SELECT name FROM [from] WHERE not exists (select * from [to] where [from].name = [to].name);