[TrinityDB] Is there any way to add and additional '0' in a selected column? menu

User Tag List

Results 1 to 7 of 7
  1. #1
    ReppzYouTube's Avatar Member CoreCoins Purchaser
    Reputation
    12
    Join Date
    Dec 2007
    Posts
    118
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [TrinityDB] Is there any way to add and additional '0' in a selected column?

    Hi i've been working on this for ages now and since SQL isn't my strongest language i'm having trouble. What im trying to do is for example theres a cloak with + 86 Stam i want to insert a SQL query to change all items with all stats to add a '0' after so the cloak for example would be +860 stam im not looking to update a certain value im looking to update all of them if you understand :S thanks
    https://www.youtube.com/reppzgaming
    Best place on the web for Rogue PvP.

    [TrinityDB] Is there any way to add and additional '0' in a selected column?
  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)
    Make a backup of your DB in case it goes wrong, but try something like this:

    UPDATE `items` SET `columnname` = * + "0";

    I have no idea whether that will work. :/ The reason I used " instead of ' is to try and treat it as a string.

  3. #3
    Dombo's Avatar Banned
    Reputation
    622
    Join Date
    Nov 2008
    Posts
    1,421
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    UPDATE <items table> SET <stats column> = <stats column>*10

    Try this?

    EDIT: on the contrary to harry's query, I think multiplying by 10 would be the best solution.
    Last edited by Dombo; 07-29-2010 at 02:17 PM.

  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)
    Yup that should work Dombo. Just would only be a solution for if you wanted to add 0's, and not a solution for if you wanted to add other things (for example a 1 or a word to a name).

  5. #5
    ReppzYouTube's Avatar Member CoreCoins Purchaser
    Reputation
    12
    Join Date
    Dec 2007
    Posts
    118
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Dombo View Post
    UPDATE <items table> SET <stats column> = <stats column>*10

    Try this?

    EDIT: on the contrary to harry's query, I think multiplying by 10 would be the best solution.
    TYVM it worked +rep for you
    https://www.youtube.com/reppzgaming
    Best place on the web for Rogue PvP.

  6. #6
    lykanbluepaws's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could you be more specific as to what column you edit? and im new to SQL and im using HeidiSQL 5.0.0.3272
    Last edited by lykanbluepaws; 08-20-2010 at 10:19 PM.

  7. #7
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    UPDATE <items table> SET <stats column> = <stats column>*10

    <items table> would be items

    <stats column> would be the stat column... logical.




Similar Threads

  1. Is there any way I can whisper people using the Ascent Console?
    By faxmunky in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 10-27-2007, 07:03 PM
  2. Is there any way to race swap without the use of .M2 files?
    By Nemefist in forum WoW ME Questions and Requests
    Replies: 9
    Last Post: 10-23-2007, 07:33 AM
  3. Is there any way?
    By Puff in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 08-02-2007, 07:24 AM
  4. Is there any way around this?
    By Iceman2 in forum Community Chat
    Replies: 5
    Last Post: 04-25-2007, 06:01 AM
  5. is there any way i can make my own models?
    By Avianar47 in forum World of Warcraft Model Editing
    Replies: 6
    Last Post: 08-30-2006, 07:22 PM
All times are GMT -5. The time now is 10:14 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