平成30/ 2018-12-19 17:45
mysql 重複の最新をINSERTしたい場合
insert into TwitterNgUser
select Twitters.from_user_id as user_id, from_user as user, from_user_name as user_name, profile_image_url, profile_image_url_https
from
    Twitters inner join
    (
    select max(id) as id, from_user_id from Twitters group by from_user_id
    ) b on
    Twitters.id = b.id
where
    Twitters.from_user_id in(9999999999999999)