P°i°azovacφ p°φkaz SET (SQL)

p°i°azovacφ_p°φkaz ::= SET cφl_p°i°azenφ = v²raz;

P°φkaz vyΦφslφ hodnotu v²razu a p°i°adφ ji do cφle p°i°azenφ. Cφlem p°i°azenφ m∙₧e b²t lokßlnφ prom∞nnß, parametr, prom∞nnß klienta, dynamick² parametr nebo sloupec s p°φpadn²m indexem, znakem # nebo dvojindexem.

Nejsou-li typy v²razu a cφle p°i°azenφ stejnΘ, pak

P°φklad: p°i°azenφ konstanty do lokßlnφ prom∞nnΘ

  DECLARE EmiPath CHAR(30);
  DECLARE TypAdr CHAR(20);
  
  SET EmiPath="p:\mail";
  SET TypAdr="Internet";

P°φklad: p°i°azenφ hodnoty v²razu do sloupce tabulky

TRIGGER DatTabControlUpd AFTER UPDATE OF dat1 ON Castab
REFERENCING NEW AS novarad
            OLD AS stararad
FOR EACH ROW 
BEGIN
  SET novarad.kolikdni=CAST(Abs(novarad.dat1-stararad.dat1) AS INT);
END