Adding Update changeset in dml format updated value get by select query
up vote
0
down vote
favorite
I want to add changeset to update the table column value in yaml format and updated value is fetched at runtime via select query;
UPDATE table SET groupid=(select id from group where groupname='star') WHERE studentid=(select studentid from student where name ='abc');
yaml format
- changeSet:
id: 1
author: abc
changes:
- update:
tableName: table
columns:
- column:
name: groupid
value: (select id from group where groupname='star')
where: studentid=(select studentid from student where name ='abc')
but it is not working for me
postgresql yaml liquibase
add a comment |
up vote
0
down vote
favorite
I want to add changeset to update the table column value in yaml format and updated value is fetched at runtime via select query;
UPDATE table SET groupid=(select id from group where groupname='star') WHERE studentid=(select studentid from student where name ='abc');
yaml format
- changeSet:
id: 1
author: abc
changes:
- update:
tableName: table
columns:
- column:
name: groupid
value: (select id from group where groupname='star')
where: studentid=(select studentid from student where name ='abc')
but it is not working for me
postgresql yaml liquibase
yes liquibase changeset in yaml format
– Saakshi Aggarwal
Nov 21 at 9:34
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want to add changeset to update the table column value in yaml format and updated value is fetched at runtime via select query;
UPDATE table SET groupid=(select id from group where groupname='star') WHERE studentid=(select studentid from student where name ='abc');
yaml format
- changeSet:
id: 1
author: abc
changes:
- update:
tableName: table
columns:
- column:
name: groupid
value: (select id from group where groupname='star')
where: studentid=(select studentid from student where name ='abc')
but it is not working for me
postgresql yaml liquibase
I want to add changeset to update the table column value in yaml format and updated value is fetched at runtime via select query;
UPDATE table SET groupid=(select id from group where groupname='star') WHERE studentid=(select studentid from student where name ='abc');
yaml format
- changeSet:
id: 1
author: abc
changes:
- update:
tableName: table
columns:
- column:
name: groupid
value: (select id from group where groupname='star')
where: studentid=(select studentid from student where name ='abc')
but it is not working for me
postgresql yaml liquibase
postgresql yaml liquibase
edited Nov 21 at 9:33
asked Nov 21 at 8:37
Saakshi Aggarwal
2091518
2091518
yes liquibase changeset in yaml format
– Saakshi Aggarwal
Nov 21 at 9:34
add a comment |
yes liquibase changeset in yaml format
– Saakshi Aggarwal
Nov 21 at 9:34
yes liquibase changeset in yaml format
– Saakshi Aggarwal
Nov 21 at 9:34
yes liquibase changeset in yaml format
– Saakshi Aggarwal
Nov 21 at 9:34
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
I get the answer
- changeSet:
id: 1
author: abc
changes:
- update:
tableName: table
columns:
- column:
name: groupid
valueComputed: (select id from group where groupname='star')
where: studentid=(select studentid from student where name ='abc')
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I get the answer
- changeSet:
id: 1
author: abc
changes:
- update:
tableName: table
columns:
- column:
name: groupid
valueComputed: (select id from group where groupname='star')
where: studentid=(select studentid from student where name ='abc')
add a comment |
up vote
0
down vote
I get the answer
- changeSet:
id: 1
author: abc
changes:
- update:
tableName: table
columns:
- column:
name: groupid
valueComputed: (select id from group where groupname='star')
where: studentid=(select studentid from student where name ='abc')
add a comment |
up vote
0
down vote
up vote
0
down vote
I get the answer
- changeSet:
id: 1
author: abc
changes:
- update:
tableName: table
columns:
- column:
name: groupid
valueComputed: (select id from group where groupname='star')
where: studentid=(select studentid from student where name ='abc')
I get the answer
- changeSet:
id: 1
author: abc
changes:
- update:
tableName: table
columns:
- column:
name: groupid
valueComputed: (select id from group where groupname='star')
where: studentid=(select studentid from student where name ='abc')
answered Nov 21 at 10:30
Saakshi Aggarwal
2091518
2091518
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53408072%2fadding-update-changeset-in-dml-format-updated-value-get-by-select-query%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
yes liquibase changeset in yaml format
– Saakshi Aggarwal
Nov 21 at 9:34