Mysql
 sql >> Database >  >> RDS >> Mysql

Definisci il set di modifiche per la query di inserimento in liquibase

Usa l'attributo valueComputed:

<changeSet author="unknown" id="insert-example-2">
    <insert tableName="StudentClassMap">
        <column name="studentId" valueComputed="(SELECT sId from StudentMaster where studentName='Jay Parikh')"/>
        <column name="studentClass" value="McSc. 1st Year"/>
    </insert>
</changeSet>