Variable in UPDATE #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi.
Why Variables in Update not working?
It works:
execute "UPDATE
statsSETlevel= %{_level}%, xp = %{_xp}% WHEREnick= 'Player123'" in {sql}But not this:
execute "UPDATE
statsSETlevel= %{_level}%, xp = %{_xp}% WHEREnick= %player's nickname%" in {sql}I also tried:
set {_p} to player's nickname
and WHERE
nick= %{_p}%" in {sql}%player% gives error: "Parameter cannot be serialized: org.bukkit.craftbukkit.v1_16_R3.entity.CraftPlayer
WHERE
nick= '%{_p}%'" in {sql} gives error: Could not set parameter at position 3 (values was 'Player123')try name of player