INSERT INTO
info_meta (info_code)
SELECT %s FROM dual
WHERE NOT EXISTS (SELECT 1 FROM info_meta WHERE info_code=%s);
INSERT INTO
info_meta (info_code)
SELECT %s FROM dual
WHERE NOT EXISTS (SELECT 1 FROM info_meta WHERE info_code=%s);
本文标题:SQL 不重复插入(非主键)
本文链接:https://www.haomeiwen.com/subject/qjpfrqtx.html
网友评论