判断某个id是否存在于表中了,如果存在则不插入,不存在则插入 无 INSERT INTO USER (email,ADDTIME) (SELECT 'email','addTime' FROM USER u2 JOIN( SELECT COUNT(*) num FROM USER u1 WHERE u1.id = 87) u3 ON u3.num 1 LIMIT 1)
判断 某个id是否存在于表中了,如果存在则不插入,不存在则插入 <无> $velocityCount-->INSERT INTO USER (email,ADDTIME) (SELECT 'email','addTime' FROM USER u2 JOIN( SELECT COUNT(*) num FROM USER u1 WHERE u1.id = 87) u3 ON u3.num < 1 LIMIT 1)
声明:本网页内容旨在传播知识,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。TEL:177 7030 7066 E-MAIL:11247931@qq.com