How to set all field values in a column to X menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Jurkey's Avatar Member
    Reputation
    1
    Join Date
    Jan 2009
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to set all field values in a column to X

    Well, I have a little WoW server that I play on to times, but I really want to get rid of the race restrictions and class restrictions on armor.
    I've messed about around in NaviCat and haven't been able to find out how to do it, and since I'm no SQL expert, I've no idea how to make a query which can do the job.
    I run on ArcEmu for the 3.5.5 version.

    The table of items is called "items"
    Column is called "allowablerace" and "allowableclass"
    The value for everybody being allowed to use the item is "-1".

    So I what I want is basically a query/script that just changes the value of all fields in "allowablerace" or the class one, to -1.
    Also, are there any SQL guides that you guys can recommend for a SQL newbie like me?
    Last edited by stoneharry; 07-13-2011 at 10:33 AM. Reason: Added prefix because apparently you can't read the stickied thread saying the rules.

    How to set all field values in a column to X
  2. #2
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Read any basic SQL guide, it's really easy and can be learnt in less than an hour to manipulate your database through queries in a basic way.

    UPDATE `items` SET `allowablerace` = '-1';
    UPDATE `items` SET `allowableclass` = '-1';

  3. #3
    Jurkey's Avatar Member
    Reputation
    1
    Join Date
    Jan 2009
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could you link me to any guides like that?

  4. #4
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

Similar Threads

  1. Need to know how to set my account to be admin on ascent server!
    By chernoble in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 10-15-2007, 10:02 PM
  2. how to set one char become a GM ?
    By kelanthang998 in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 09-10-2007, 04:19 PM
  3. How to shock All your Friends :P
    By rmitchel in forum World of Warcraft Exploits
    Replies: 33
    Last Post: 07-15-2007, 01:47 AM
  4. how to set player as gm or 6 persmision
    By ilovethissite in forum World of Warcraft General
    Replies: 1
    Last Post: 12-27-2006, 09:07 AM
  5. How To Set Up A Private Server Using A Lan/wireless Network!!!
    By Chaos Lord in forum World of Warcraft Guides
    Replies: 4
    Last Post: 07-22-2006, 06:26 AM
All times are GMT -5. The time now is 12:41 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search