antiblock
Rodnia | Alpha & Omega
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
friend

[Query] Multiplicar Valor Atual

Question

Olá '-' :|

 

Eu gostava de saber se com uma Query eu consigo multiplicar o valor atual.

 

Baseado nos meus conhecimento, tentei isto:

 

UPDATE 'item_proto' SET 'shop_buy_price' = 'shop_buy_price' * 10  [Não Funcionou]

 

 

Eu até meti as cores +/- como aparece lá xD

 

Resumindo: Preciso de uma Query que multiplique o valor atual da column. Thx :D

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Close this shit!

 

Tutorial: Multiplicar o valor atual de uma Column :

 

UPDATE table SET column = column * x

 

table - table que queres dar update (mob_proto, item_proto, player..)

column - A Coluna a que queres dar update (No mob_proto pode ser o gold_max/gold_min, no item_proto pode ser  o shop_buy_price.. )

X - Valor que desejam multiplicar tipo *10 *100 *1000.. 

Share this post


Link to post
Share on other sites
antiblock
Cyphriun

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now