Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

updating a row with liquibase

$
0
0
Hi everyone,

I'm new to liquibase and I was wondering if it is possible to update an existing row with liquibase?

This is what i'm trying to 

TABLE:
col1 | col2
123       0
124       1

and I want to change col2 value to 1 and this is how I'm trying to do it:
<changeSet author="myName" id="7799">
        <sql>
            UPDATE TABLENAME;
            SET COL1='1' WHERE col1='123';
        </sql>
</changeSet>

Thank you


Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>