Variable in UPDATE #4
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Limework/skript-db#4
Loading…
Reference in New Issue
Block a user
No description provided.
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
stats
SETlevel
= %{_level}%, xp = %{_xp}% WHEREnick
= 'Player123'" in {sql}But not this:
execute "UPDATE
stats
SETlevel
= %{_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