REPLACE INTO `a` (`value`) SELECT value  from `b`