Welcome to Sign in | Help

SQL Querry ?

  •  05-29-2012, 1:01 PM

    SQL Querry ?

    Salut prieteni , am si eu o problema mare , cu o dilema la mijloc

    Iata problema

    am un db (Data Base) SQL

    si tabelul Characters
    Coloana PCPoints
    (jucatori de pe server de la mine adauga pucte omorand mobi) sa zicem 100

    Si vreau sa convertesc via SQL JOB preferabil Php , aceste PCPoints in

    Tabelul MEMB_INFO
    Coloana cspoints


    Dar imediat ce conversia a fost facuta sa fie asa

    Inainte de conversie
    PCPoints = 100
    cspoints = 0

    Dupa conversie

    Pcpoints = 0
    cspoints =100


    iata cum arata Tabelele


    Character



    MEMB_INFO



    Pana acuma am venit cu formula ara


    Update MEMB_INFO
    Set cspoints = a.cspoints+b.PCPoints
    FROM Character iner JOIN MEMB_STAT ON Character.AccountID=MEMB_INFO.memb___id
    where a=cspoints and b=PCPoints


    din greseala am stricat codul acesta pe undeva , oricum stiu ca il facusem bine si imi dadea informatia din PCPoints dar nu o stergea ramanea si la PCPoints 100 si jucatori pot incarca cspointuri fara numar cine crede ca ma poate ajuta
View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems