Също така можете да опитате това
INSERT INTO locations (STREET_ADDRESS)
SELECT 'test' FROM DUAL
WHERE NOT EXISTS (
SELECT * from locations where STREET_ADDRESS = 'test'
) LIMIT 1;
Също така можете да опитате това
INSERT INTO locations (STREET_ADDRESS)
SELECT 'test' FROM DUAL
WHERE NOT EXISTS (
SELECT * from locations where STREET_ADDRESS = 'test'
) LIMIT 1;