Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果不存在重复项,我正在寻找选择对象的最佳方法。
我有一个复制对象数组的方法。但如果副本已经存在,则无需复制它们。
如何通过 mysql2 以轻量级的方式最初选择我的尚未复制的对象数组?
SELECT COUNT(name_of_col) From table_name GROUP BY name_of_col HAVING COUNT(name_of_col) = 1
SELECT object FROM table GROUP BY object HAVING count(*)=1