Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

PUT

Estado atual. O caminho aceita chave e valor literais em tabelas MEMORY voláteis ou com durabilidade snapshot.

Insere ou substitui uma chave na tabela em memória.

PUT sessions ('ana', '\x0102'::bytea);
PUT sessions ('ana', '\x0102'::bytea) EX 60;
PUT sessions ('ana', '\x0102'::bytea) NX;
PUT sessions ('ana', '\x0102'::bytea) XX;

NX exige chave ausente; XX exige chave existente. O comando é atômico e não é desfeito por ROLLBACK.