set_byte(string, offset, newvalue) : set_byte « String Functions « PostgreSQL






set_byte(string, offset, newvalue)


postgres=#
postgres=# -- set_byte(string, offset, newvalue)
postgres=# -- Set byte in string
postgres=#
postgres=# select set_byte('Th\\000omas'::bytea, 4, 64);
  set_byte
------------
 Th\000o@as
(1 row)

postgres=#
postgres=#
           
       








Related examples in the same category