0

I'm getting a MySQL syntax error for the following query:

IF NOT EXISTS (SELECT * FROM `guilds` WHERE `ID` = 123)
BEGIN
INSERT INTO guilds (`ID`, `Prefix`, `Join`, `Leave`) VALUES ('123', '//', '    Welcome!', 'Goodbye!');
END

I don't know what's causing this, could somebody help?

I've looked at other examples of this, and they seem to be identical to this one, with the exception that this one doesn't work.

Arraying
  • 169
  • 2
  • 3
  • 10

0 Answers0