i search in stack but None of them had reached the final answer. My query is this :
INSERT INTO user (username,frequence,autoSend)
VALUES('feri2','3','1')
WHERE NOT EXISTS ( SELECT * FROM user WHERE username='feri2')
When run,I receive the syntax parsing error:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE NOT EXISTS ( SELECT * FROM user WHERE username='feri2')' at line 1
I don't know how I can fix it, where is the problem?