Liquibase Community Forum
2010-11-17 17:57:47 UTC
A new topic, 'How to upate a field from another field's value?', has been made on a board you are watching.
You can see it at
http://liquibase.org/forum/index.php?topic=790.new#new
The text of the topic is shown below:
Gentlemen,
I need update a column from another column, like
Code:
update mytable set field1 = field2, field3 = field4*2
I know there is update construction in LiquiBase but I can point constants only, i.e.
Code:
<update tableName="ProductSettings">
<column name="field1" value="field2"/>
</update>
as a result field1's value will be 'field2' string. So how can I point fields and expressions for update?
Unsubscribe to new topics from this board by clicking here: http://liquibase.org/forum/index.php?action=notifyboard;board=1.0
Regards,
The Liquibase Community Forum Team.
You can see it at
http://liquibase.org/forum/index.php?topic=790.new#new
The text of the topic is shown below:
Gentlemen,
I need update a column from another column, like
Code:
update mytable set field1 = field2, field3 = field4*2
I know there is update construction in LiquiBase but I can point constants only, i.e.
Code:
<update tableName="ProductSettings">
<column name="field1" value="field2"/>
</update>
as a result field1's value will be 'field2' string. So how can I point fields and expressions for update?
Unsubscribe to new topics from this board by clicking here: http://liquibase.org/forum/index.php?action=notifyboard;board=1.0
Regards,
The Liquibase Community Forum Team.