PostgreSQL, sum data from row of table? -


 xabcd ---------- A 1 2 3 4B5 6 7 8C6 7 8 9  

I want my sum to A = 1 + 2 + 3 + 4 and B and C, is there any command which can add a line of data to PostgreSQL?

There is no such built-in function, but you can just do the following: < Pre> select x, assuming that the data type of a , b , c and d are numerical.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -