Basic SQL Scripting Guide menu

User Tag List

Results 1 to 8 of 8
  1. #1
    R0flz0r's Avatar Banned
    Reputation
    4
    Join Date
    May 2007
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Basic SQL Scripting Guide

    Ok im pretty bored so i decided to make a guide on how to do some changes to the database without looking everything up, this can really spare u some time.

    Lets say u want to remove something then it would be
    DELETE from <tablename> where <collum> = <ID of what u want removed>; <-- the ";" simple just stops the query allowing u to upload more queries at the time

    Example:
    DELETE from items where entry = 31332;
    the query above would complety remove Blinkstrike from the game

    Lets take another example:
    DELETE from vendors where item = 31332;
    the query above would complety remove Blinkstrike from all vendors, but it would still be able to get by drops.

    Ok now a how to add queries to the database
    INSERT into <Tablename> ('<first collum>, '<second cullom>') values (<what u want in the first cullom>, <..in the secound cullom>,);

    Example:
    insert into `spell_disable` (`spellid`, `replacement_spellid`) values (5, 0);

    You can also do it the abit "faster" way but that wouldnt match all revs

    Insert into spell_disable VALUES (5, 0);
    the query above inserts a spell into the spell_disable table which would be disabled and unable to be used

    ----
    Now how to update rows

    UPDATE items set sellprice = 10000 where entry = 31332;
    the query above would set the sellprice for blinkstrike to 10000copper

    Now if u want to set the sellprice to 10000copper for every single item
    UPDATE items set sellprice = 10000 where entry between 1 and 9999999999;
    You can also use the query above to remove the cost from all spells and skills (nice for funservers)

    I guess thats all you need to know feel free to ask questions


    Written by R0flz0r and only R0flz0r | Credits to R0flz0r and only R0flz0r

    Basic SQL Scripting Guide
  2. #2
    gloob's Avatar Member
    Reputation
    11
    Join Date
    Jan 2008
    Posts
    63
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ty for that

  3. #3
    R0flz0r's Avatar Banned
    Reputation
    4
    Join Date
    May 2007
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    come on 50 views 1 reply..

  4. #4
    Siddious72's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    awesome man some basic info that helps a lot

  5. #5
    Snailz's Avatar Contributor Authenticator enabled
    Reputation
    239
    Join Date
    Nov 2007
    Posts
    941
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would like to see more of theese more advanced.
    Cheese Cake?

  6. #6
    XxXMaggotXxX's Avatar Member
    Reputation
    4
    Join Date
    Apr 2008
    Posts
    26
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice guide dude, i really used that!

  7. #7
    Falor's Avatar Member
    Reputation
    9
    Join Date
    May 2007
    Posts
    201
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice guide, good for noobs, but everything is baisicly self explanitory, i would also like some more advanced

  8. #8
    XxXMaggotXxX's Avatar Member
    Reputation
    4
    Join Date
    Apr 2008
    Posts
    26
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    R0flz0r? You seem good in SQL, could you make a more advanced guide?

Similar Threads

  1. [Guide] Lua Scripting Guide is here [Updating]
    By Illidan1 in forum WoW EMU Guides & Tutorials
    Replies: 93
    Last Post: 11-04-2008, 06:56 PM
  2. Basic understanding of SQL Scripting.
    By Drop_Warcrack in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 12-28-2007, 09:15 AM
  3. GM Scripting Guides by me (there is alot of Scripting guides by me in here)
    By Illidan1 in forum WoW EMU Guides & Tutorials
    Replies: 26
    Last Post: 11-27-2007, 04:46 PM
  4. Basic L33t speak guide
    By Snor11 in forum World of Warcraft Guides
    Replies: 13
    Last Post: 10-19-2006, 12:45 PM
All times are GMT -5. The time now is 04:33 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