Query to modify Tab_RefTactics

Results 1 to 3 of 3
  1. #1
    Member zikor1337 is offline
    MemberRank
    Sep 2011 Join Date
    55Posts

    Query to modify Tab_RefTactics

    Ok, so, I've been trying to create a query that is going to modify the dwObjID from Tab_RefTactics with the ID from _RefObjCommon just by giving it the range, something like : update mob MOB_KT_BUNWANG with MOB_JUPITER_JUPITER .


    I've been trying doing it with "left join" and some other stuff. They didn't worked. Any ideas ?


  2. #2
    Member collerok is offline
    MemberRank
    Jun 2011 Join Date
    76Posts

    Re: Query to modify Tab_RefTactics

    http://forum.ragezone.com/f722/sql-q...e-spot-855558/
    you can gain some information from this script

  3. #3
    Account Upgraded | Title Enabled! RevoLand is offline
    MemberRank
    Jan 2009 Join Date
    117Posts

    Re: Query to modify Tab_RefTactics

    Code:
    UPDATE Tab_RefTactics SET Range = 123 WHERE dwObjID = (SELECT ID FROM _RefObjCommon WHERE CodeName128 = 'MOB_KT_BUNWANG')
    for multiple values;
    Code:
    UPDATE Tab_RefTactics SET Range = 123 WHERE dwObjID in (SELECT ID  FROM _RefObjCommon WHERE CodeName128 LIKE '%MOB_KT_%')
    it must work.



Advertisement