In pl-sql can I assign the SUM value to a variable?

Asked

Viewed 616 times

0

In the system has a variable vsoma which shall receive the total sum of the column Values.

How can I assign the sum value SELECT sum(valor) from PRODUTOS2?

inserir a descrição da imagem aqui

  • 1

    SELECT sum(valor) INTO VARIABLE from PRODUTOS2

  • In the system? I believe it is just to make the connection to the BD where the query will be, getting the return just play inside the variable.

  • @Everson plays as answer :P

  • @rLaws Done! D

1 answer

2


Browser other questions tagged

You are not signed in. Login or sign up in order to post.