INSERT INTO progresses (user_id, object_type, object_id) SELECT 1, 0, 2 FROM DUAL WHERE NOT EXISTS ( SELECT id FROM progresses WHERE user_id = 1 AND object_id = 2 )Is it possible to do this using query builder?
It looks like you're new here. If you want to get involved, click one of these buttons!