sql 表复制(不会重复数据)

insert into `blog_type` (`blogid`,`classid`,`att`,`stime`,`etime`) select b.`blogid`,6,'c,h','2009-08-31 15:00:00', '2009-09-05 15:00:00' from `uchome_blog` b where b.`blogid` NOT IN (SELECT t.`blogid` FROM `blog_type` t) AND b.`blogid` > 210 AND b.`type` = 'qinggan' ORDER BY b.`blogid` ASC LIMIT 0, 15

你可能感兴趣的:(sql,C++,c,C#,Blog)