Jump to content
  • 0

Sql script


Hanashi

Question


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  113
  • Reputation:   40
  • Joined:  10/23/13
  • Last Seen:  

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

 

Edited by AshiHanna
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  249
  • Reputation:   72
  • Joined:  10/20/12
  • Last Seen:  

# 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
Link to comment
Share on other sites

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.

×
×
  • Create New...