Możesz również spróbować tego
INSERT INTO locations (STREET_ADDRESS)
SELECT 'test' FROM DUAL
WHERE NOT EXISTS (
SELECT * from locations where STREET_ADDRESS = 'test'
) LIMIT 1;
Możesz również spróbować tego
INSERT INTO locations (STREET_ADDRESS)
SELECT 'test' FROM DUAL
WHERE NOT EXISTS (
SELECT * from locations where STREET_ADDRESS = 'test'
) LIMIT 1;