批量增加数据例如:
INSERT INTO T_COLUMN_REFER_ARTICLE( COLUMN_ID,GLOBLE_ID)
SELECT 10062, 537836
UNION ALL
SELECT 10062, 537919
UNION ALL
SELECT 10062, 534171
这样就加入了三条数据了~~~
删除表中重复数据:
DELETE FROM T_COLUMN_REFER_ARTICLE
WHERE ID NOT IN(SELECT MIN(ID) FROM T_COLUMN_REFER_ARTICLE
GROUP BY GLOBLE_ID,COLUMN_ID)