I've tried multiple variations of this code and it keeps giving me the SQL state: 42601 error. I've looked at the docs and tried using their examples which sometimes work, but do not do what I want.
IF (SELECT guildid FROM Servers <> 1) THEN
INSERT INTO Servers (guildid) VALUES (1)
END IF;
My Servers table is simple. I just have a single row called guildid. I do not want a CASE statement because that only outputs messages.
CASE
expressions (not "statements") don't "output messages".column
called guildid.Rows
don't have names.