Du kan också prova detta
INSERT INTO locations (STREET_ADDRESS)
SELECT 'test' FROM DUAL
WHERE NOT EXISTS (
SELECT * from locations where STREET_ADDRESS = 'test'
) LIMIT 1;
Du kan också prova detta
INSERT INTO locations (STREET_ADDRESS)
SELECT 'test' FROM DUAL
WHERE NOT EXISTS (
SELECT * from locations where STREET_ADDRESS = 'test'
) LIMIT 1;