0

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 SET online = 0 WHERE uuid = 5f1d55a9-0e01-4540-a978-6697fdf2db1f MySQL alerts: Dokumentation

1054 - Unknown table field '5f1d55a9-0e01-4540-a978-6697fdf2db1f' in where clause

enter image description here

enter image description here

Dale K
  • 25,246
  • 15
  • 42
  • 71
F1nn-T
  • 67
  • 8
  • 2
    you don't use ticks for wrapping string but single/double quotes. – George G Apr 10 '20 at 02:25
  • Does this answer your question? [When to use single quotes, double quotes, and backticks in MySQL](https://stackoverflow.com/questions/11321491/when-to-use-single-quotes-double-quotes-and-backticks-in-mysql) – P.Salmon Apr 10 '20 at 07:03

2 Answers2

1

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.

Gordon Linoff
  • 1,242,037
  • 58
  • 646
  • 786
0

just use single quotes NOT ticks. Below query should work

update players
set online = 0
where uuid = '5f1d55a9-0e01-4540-a978-6697fdf2db1f';
zealous
  • 7,336
  • 4
  • 16
  • 36