2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
Are you doing the util.autoId outside the statement block in the following manner? This will generate the id variable that will be set inside the statements.
#set($id=$utils.autoId())
{
"version": "2018-05-29",
"statements": [
"insert into Pets VALUES ('$id', '$ctx.args.input.type', $ctx.args.input.price)",
"select * from Pets WHERE id = '$id'"
]
}
Edited by: Ionut@AWS on Feb 21, 2019 2:08 PM
답변함 6년 전
0
Thank you!
Yup, it's right there in the sample, the darker font in italics made it blend in. Working now :)
답변함 6년 전
관련 콘텐츠
- 질문됨 7년 전