I have the following sql query running and it is giving me error 1064, syntax error.
IF NOT EXISTS (select * from locations where STREET_ADDRESS = 'test')
BEGIN
insert into locations (STREET_ADDRESS) values ('test')
end;
Can someone please help me out? It seems so simple yet it will not run. Thanks.
Also, I'm running MySQL version 5.6.11