Created
February 11, 2021 18:11
-
-
Save alphamikle/de4219b73a987de8536c26d70e59fb40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
START TRANSACTION | |
// ... | |
SELECT "Purse"."id" AS "Purse_id", "Purse"."balance" AS "Purse_balance", "Purse"."userId" AS "Purse_userId" | |
FROM "purse" "Purse" | |
WHERE "Purse"."id" IN ($1) | |
UPDATE "purse" | |
SET "balance" = $2 | |
WHERE "id" IN ($1) | |
SELECT "Purse"."id" AS "Purse_id", "Purse"."balance" AS "Purse_balance", "Purse"."userId" AS "Purse_userId" | |
FROM "purse" "Purse" | |
WHERE "Purse"."id" IN ($1) | |
UPDATE "purse" | |
SET "balance" = $2 | |
WHERE "id" IN ($1) | |
COMMIT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment