Problem with WHERE NOT EXISTS #18
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Limework/skript-db#18
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
I'm in spigot 1.18.1 and the last version of skript-db
I want that when a player connects to the server it adds him to the database if he doesn't already exist.
I tried the following command but it doesn't work, it tells me that I have an error on my WHERE NOT EXISTS
The INSERT INTO part works perfectly
Does anyone have an idea how to solve the problem?
you don't need where not exist in insert, just create unique key on uuid, then insert will fail if it already exists
Ok, how can I do this with skript-db?
it's not a skript-db feature, it's SQL feature, it's in your table structure
Ok this work, thanx you for your ansmwer :)