| От | Tom Lane |
|---|---|
| Тема | Re: Mistake in statement example |
| Дата | |
| Msg-id | 1522262.1677688451@sss.pgh.pa.us обсуждение |
| Ответ на | Mistake in statement example (PG Doc comments form <noreply@postgresql.org>) |
| Ответы |
Re: Mistake in statement example
|
| Список | pgsql-docs |
PG Doc comments form <noreply@postgresql.org> writes: > I believe there is a mistake in an example on > https://www.postgresql.org/docs/current/transaction-iso.html section > 13.2.1: > BEGIN; > UPDATE accounts SET balance = balance + 100.00 WHERE acctnum = 12345; > UPDATE accounts SET balance = balance - 100.00 WHERE acctnum = 7534; > COMMIT; > The acctnum is expected to be 12345 in both cases. No, I think that's intentional: the example depicts transferring $100 from account 7534 to account 12345. regards, tom lane
В списке pgsql-docs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера