antiblock
Elveron
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
K3nkσz

[Duvida] Multiplicar Colunas Navicat

Question

Boas comunidade,

Hoje é dia das duvidas, eheh, bem queria saber se é possivel multiplicar 2x ou mais uma coluna no navicat.

Exemplo:

  • [*]Cão Selvagem (Yang) - [10-20] [*]Lobo (Yang) - [20-40]

E ao usar a query, os valores dessa coluna de Yang, duplicam pelo que eu coloquei na query.

E ficaria assim:

  • [*]Cão Selvagem (Yang) - [20-40] [*]Lobo (Yang) - [40-80]

Faço me entender?

 

Sem mais,

Kenkoz.

Share this post


Link to post
Share on other sites

4 answers to this question

  • 0
UPDATE player.mob_proto SET gold_min=gold_min*n;UPDATE player.mob_proto SET gold_max=gold_max*n;

No teu caso, metes isso.

n = numero que queres multiplicar.

Share this post


Link to post
Share on other sites
antiblock
https://i.imgur.com/aJ17bf7.gif
  • 0
UPDATE tabela SET coluna = coluna * factor;
Também podes dividir, somar ou subtrair.

Share this post


Link to post
Share on other sites
  • 0

Obrigado.

Share this post


Link to post
Share on other sites
  • 0

Muito obrigado.

Share this post


Link to post
Share on other sites

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
Sign in to follow this