Jump to content
  • 0

Question

Posted (edited)

how to select remove all inventory items from the database and change group id of a certain account using sql script?

 

Edited by AshiHanna

1 answer to this question

Recommended Posts

  • 0
Posted (edited)
# Removes all inventory items from all characters
DELETE FROM `inventory`;

# Removes inventory items from character 150000
DELETE FROM `inventory` WHERE `char_id` = 150000;

# Sets group_id to 1 of account 2000000
UPDATE `login` SET `group_id` = 1 WHERE `account_id` = 2000000;

Edit:

Don't forget to backup your database.

Edited by Jey

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...