i'm trying to write a if exists else sql which will further use in c# winform with mysql, here is the test
IF NOT EXISTS(SELECT 1 from products where entity_id=1) select * from products;
i ran above sql in adminer but there is a error message, Syntax error near 'select * from products' at line 1
Anyone know what is the problem?