Update column to value of other column

Hi there…

Is there a way to write an statement to update the value of a column to the value of another column? I’ve tried using the “standard” update, but that seems to be just for explicit values (strings, numerics etc).

The only other way I could think of would be to use a SQL statement directly.


I think you are going to have to go with a raw statement for now.

With the upcoming 2.0, there is a “valueComputed” attribute on that will not do any quoting of the value which should work. You can get the current snapshot from http://liquibase.org/ci/latest.