I don’t know what I do false, Here the Code:
`UPDATE `Players` SET `online` = 0 WHERE `uuid` = `5f1d55a9-0e01-4540-a978-6697fdf2db1f`;`
Here the error:
SQL-Command: UPDATE
Players
SETonline
= 0 WHEREuuid
=5f1d55a9-0e01-4540-a978-6697fdf2db1f
MySQL alerts: Dokumentation1054 – Unknown table field ‘5f1d55a9-0e01-4540-a978-6697fdf2db1f’ in where clause
Advertisement
Answer
Using single quotes for strings and don’t bother escaping other identifiers:
UPDATE Players SET online = 0 WHERE uuid = '5f1d55a9-0e01-4540-a978-6697fdf2db1f';
Easier to read as well as write.