i would like to make SELECT
statement when the condition is equals to 1, so that will execute INSERT
statement, when not, so it will not doing anything. What i think you can see below in my code.
SET @var = 1;
SELECT IF(@var = 1,
INSERT INTO tabulka VALUES('value1','name1'),
0
)
Thanks