Script copy max value from a column

Results 1 to 5 of 5
  1. #1
    Apprentice gil_super43 is offline
    MemberRank
    Dec 2007 Join Date
    13Posts

    ! Script copy max value from a column

    Hello guys!
    I want to do a script to my server. Can i get some help?

    Example of the situation:
    The TOP resets from my server has 484 resets. I want to do a query that copy the 484 value to all others characters, so all the other players will get 484 resets too.

    Thank you!


  2. #2
    Don't be afraid to ask! RevolGaming is offline
    MemberRank
    Jun 2012 Join Date
    1,458Posts

    Re: Script copy max value from a column

    automatic... ? if automatic you need crone job.

    it other hand,

    Update Character set Resets=(Select Top 1 Resets FROM Character ORDER BY DESC)

  3. #3
    Apprentice gil_super43 is offline
    MemberRank
    Dec 2007 Join Date
    13Posts

    Re: Script copy max value from a column

    It worked!
    Thank you,

  4. #4
    Don't be afraid to ask! RevolGaming is offline
    MemberRank
    Jun 2012 Join Date
    1,458Posts

    Re: Script copy max value from a column

    yes, I know its working, lel.

    but why you need this query? whare are you doing with this? I just wanted to know.

  5. #5
    Apprentice gil_super43 is offline
    MemberRank
    Dec 2007 Join Date
    13Posts

    Re: Script copy max value from a column

    Actually its for another column, just thought it was easy to explain that way.
    Its like a 'model' player who will get some data copied to new players.
    Thanks!



Advertisement