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

2

2 Answers 2

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.

Sign up to request clarification or add additional context in comments.

Comments

0

just use single quotes NOT ticks. Below query should work

update players
set online = 0
where uuid = '5f1d55a9-0e01-4540-a978-6697fdf2db1f';

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.