I have a postgres column double[]: {100, 101, 102}.
I want to divide each element by 10, so the result should be {10.0, 10.1, 10.2}.
I've only found solutions with for-statements, but how to realize this with a simple query? (I need to update through liquibase)
The alternative is to write a Java-migration, but I would prefer a simple query...
Thanks in advance!
UPDATE:
A second problem that arose is:
When doing this through a Liquibase java-migration script, you get a liquibase.database.jvm.JdbcConnection (through liquibase.change.custom.CustomTaskChange), which of course does not support postgres-arrays =/.
How to handle arrays this way? (I use liquibase-core 3.5.5)