mysql 從一個表中查詢若干條數據從新插入到一個新表 已經存在的再也不重複插入

insert into business_dest  (select a.* from (select product,business,business VALUE from business_source where  date_sub(curdate(), INTERVAL 1 DAY) >= status_date group by product,business) a  where n
相關文章
相關標籤/搜索